Data source docs missing `data.`

Several variables were missing the `data.` prefix in the new subnet and
VPC data source documentation.
This commit is contained in:
James Turnbull 2016-10-15 06:32:20 +11:00
parent 0475157c4f
commit 523fffe176
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)}"
} }
``` ```