diff --git a/website/source/docs/providers/aws/d/subnet.html.markdown b/website/source/docs/providers/aws/d/subnet.html.markdown index bcb4a7a65..b586522ad 100644 --- a/website/source/docs/providers/aws/d/subnet.html.markdown +++ b/website/source/docs/providers/aws/d/subnet.html.markdown @@ -28,10 +28,10 @@ data "aws_subnet" "selected" { } resource "aws_security_group" "subnet" { - vpc_id = "${aws_subnet.selected.vpc_id}" + vpc_id = "${data.aws_subnet.selected.vpc_id}" ingress { - cidr_blocks = ["${aws_subnet.selected.cidr_block}"] + cidr_blocks = ["${data.aws_subnet.selected.cidr_block}"] from_port = 80 to_port = 80 protocol = "tcp" diff --git a/website/source/docs/providers/aws/d/vpc.html.markdown b/website/source/docs/providers/aws/d/vpc.html.markdown index 2f4bf6f97..859c0f76f 100644 --- a/website/source/docs/providers/aws/d/vpc.html.markdown +++ b/website/source/docs/providers/aws/d/vpc.html.markdown @@ -28,9 +28,9 @@ data "aws_vpc" "selected" { } resource "aws_subnet" "example" { - vpc_id = "${aws_vpc.selected.id}" + vpc_id = "${data.aws_vpc.selected.id}" 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)}" } ```