Merge pull request #9379 from jamtur01/dsawsfixes

AWS data source docs missing `data.`
This commit is contained in:
James Nugent 2016-10-14 14:39:09 -05:00 committed by GitHub
commit dfa8e53caa
2 changed files with 4 additions and 4 deletions

View File

@ -28,10 +28,10 @@ data "aws_subnet" "selected" {
} }
resource "aws_security_group" "subnet" { resource "aws_security_group" "subnet" {
vpc_id = "${aws_subnet.selected.vpc_id}" vpc_id = "${data.aws_subnet.selected.vpc_id}"
ingress { ingress {
cidr_blocks = ["${aws_subnet.selected.cidr_block}"] cidr_blocks = ["${data.aws_subnet.selected.cidr_block}"]
from_port = 80 from_port = 80
to_port = 80 to_port = 80
protocol = "tcp" protocol = "tcp"

View File

@ -28,9 +28,9 @@ data "aws_vpc" "selected" {
} }
resource "aws_subnet" "example" { resource "aws_subnet" "example" {
vpc_id = "${aws_vpc.selected.id}" vpc_id = "${data.aws_vpc.selected.id}"
availability_zone = "us-west-2a" availability_zone = "us-west-2a"
cidr_block = "${cidrsubnet(aws_vpc.selected.cidr_block, 4, 1)}" cidr_block = "${cidrsubnet(data.aws_vpc.selected.cidr_block, 4, 1)}"
} }
``` ```