瀏覽代碼

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)
 }