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])}
This commit is contained in:
Ryan Eschinger 2016-11-20 09:10:59 -05:00 committed by Paul Stack
parent 58013b5a2e
commit 7619d66002
1 changed files with 1 additions and 1 deletions

View File

@ -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])}"
}
```