diff --git a/website/source/docs/providers/aws/r/elastic_beanstalk_environment.html.markdown b/website/source/docs/providers/aws/r/elastic_beanstalk_environment.html.markdown index 3ab996ac8..548774d82 100644 --- a/website/source/docs/providers/aws/r/elastic_beanstalk_environment.html.markdown +++ b/website/source/docs/providers/aws/r/elastic_beanstalk_environment.html.markdown @@ -76,6 +76,32 @@ The `setting` and `all_settings` mappings support the following format: * `value` - value for the configuration option * `resource` - (Optional) resource name for [scheduled action](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-autoscalingscheduledaction) +### Example With Options + +``` +resource "aws_elastic_beanstalk_application" "tftest" { + name = "tf-test-name" + description = "tf-test-desc" +} + +resource "aws_elastic_beanstalk_environment" "tfenvtest" { + name = "tf-test-name" + application = "${aws_elastic_beanstalk_application.tftest.name}" + solution_stack_name = "64bit Amazon Linux 2015.03 v2.0.3 running Go 1.4" + setting { + namespace = "aws:ec2:vpc" + name = "VPCId" + value = "vpc-xxxxxxxx" + } + + setting { + namespace = "aws:ec2:vpc" + name = "Subnets" + value = "subnet-xxxxxxxx" + } +} +``` + ## Attributes Reference The following attributes are exported: @@ -107,4 +133,4 @@ Elastic Beanstalk Environments can be imported using the `id`, e.g. ``` $ terraform import aws_elastic_beanstalk_environment.prodenv e-rpqsewtp2j -``` \ No newline at end of file +```