From 7619d66002262bae57ee7039ad473c77a0c81bfd Mon Sep 17 00:00:00 2001 From: Ryan Eschinger Date: Sun, 20 Nov 2016 09:10:59 -0500 Subject: [PATCH] fix aws_availability_zone data source doc example (#10249) existing example returns an error like the following should you try to run `terraform plan` against it: Error reading config for aws_subnet[example]: data.aws_availability_zone.name_suffix: data variables must be four parts: data.TYPE.NAME.ATTR in: ${cidrsubnet(aws_vpc.example.cidr_block, 4, var.az_number[data.aws_availability_zone.name_suffix])} --- .../source/docs/providers/aws/d/availability_zone.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/providers/aws/d/availability_zone.html.markdown b/website/source/docs/providers/aws/d/availability_zone.html.markdown index 35622c97f..07bb847a7 100644 --- a/website/source/docs/providers/aws/d/availability_zone.html.markdown +++ b/website/source/docs/providers/aws/d/availability_zone.html.markdown @@ -64,7 +64,7 @@ resource "aws_vpc" "example" { # Create a subnet for the AZ within the regional VPC resource "aws_subnet" "example" { vpc_id = "${aws_vpc.example.id}" - cidr_block = "${cidrsubnet(aws_vpc.example.cidr_block, 4, var.az_number[data.aws_availability_zone.name_suffix])}" + cidr_block = "${cidrsubnet(aws_vpc.example.cidr_block, 4, var.az_number[data.aws_availability_zone.example.name_suffix])}" } ```