소스 검색

fix tagging for networks

Chris Mague 6 년 전
부모
커밋
aae9690f7e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      public_subnets.tf

+ 1 - 1
public_subnets.tf

@@ -23,5 +23,5 @@ resource "aws_route_table_association" "public" {
 resource "aws_route_table" "public_route_table" {
   count  = "${length(var.vpc-azs)}"
   vpc_id = "${aws_vpc.vpc.id}"
-  tags   = merge({ Name = "${var.vpc-name}-Public}" }, var.common-tags)
+  tags   = merge({ Name = "${var.vpc-name}-public-${element(var.vpc-azs, count.index)}" }, var.common-tags)
 }