From cd15c9aaf9bbca910a19b22d68a00c04ce2cbc8e Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Fri, 13 Mar 2015 16:04:27 -0500 Subject: [PATCH] clean up docs --- .../aws/r/internet_gateway.html.markdown | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/website/source/docs/providers/aws/r/internet_gateway.html.markdown b/website/source/docs/providers/aws/r/internet_gateway.html.markdown index 40fedbb2ae..cefedc6ad7 100644 --- a/website/source/docs/providers/aws/r/internet_gateway.html.markdown +++ b/website/source/docs/providers/aws/r/internet_gateway.html.markdown @@ -29,10 +29,17 @@ The following arguments are supported: * `vpc_id` - (Required) The VPC ID to create in. * `tags` - (Optional) A mapping of tags to assign to the resource. --> **Note:** When using Internet Gateways with AWS Instances or Elastic IPs, -it is recommended to denote that they depend on the Internet Gateway created, -via the `depends_on` attribute: -`depends_on = ["aws_internet_gateway.gw"]`. +-> **Note:** It's recommended to denote that the AWS Instance or Elastic IP depends on the Internet Gateway. For example: + + + resource "aws_internet_gateway" "gw" { + vpc_id = "${aws_vpc.main.id}" + } + + resource "aws_instance" "foo" { + depends_on = ["aws_internet_gateway.gw"] + } + ## Attributes Reference