Skip to content

Commit

Permalink
refactor: fix data source quoting
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Gerlach <[email protected]>
Signed-off-by: ugmuka <[email protected]>
  • Loading branch information
ugmuka and mgerlach authored Aug 20, 2023
1 parent 0431263 commit c62728b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resource "aws_subnet" "public" {
cidr_block = var.public_subnet_cidrs[count.index]
vpc_id = var.vpc_id
map_public_ip_on_launch = true
availability_zone = count.index % 2 == 0 ? "${data.aws_availability_zones.available.names[0]}" : "${data.aws_availability_zones.available.names[1]}"
availability_zone = count.index % 2 == 0 ? data.aws_availability_zones.available.names[0] : data.aws_availability_zones.available.names[1]
tags = merge({
Name = "mwaa-${var.environment_name}-public-subnet-${count.index}"
}, var.tags)
Expand Down

0 comments on commit c62728b

Please sign in to comment.