Explorar o código

fix tagging for networks

Chris Mague %!s(int64=6) %!d(string=hai) anos
pai
achega
aae9690f7e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 }