Skip to content

Commit

Permalink
fix: Reorder tags to allow overriding Name tag in route tables (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 authored Jun 20, 2020
1 parent 2ec2697 commit 24dba80
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ resource "aws_route_table" "database" {
vpc_id = local.vpc_id

tags = merge(
var.tags,
var.database_route_table_tags,
{
"Name" = "${var.name}-${var.database_subnet_suffix}"
},
var.tags,
var.database_route_table_tags,
)
}

Expand Down Expand Up @@ -243,11 +243,11 @@ resource "aws_route_table" "redshift" {
vpc_id = local.vpc_id

tags = merge(
var.tags,
var.redshift_route_table_tags,
{
"Name" = "${var.name}-${var.redshift_subnet_suffix}"
},
var.tags,
var.redshift_route_table_tags,
)
}

Expand All @@ -260,11 +260,11 @@ resource "aws_route_table" "elasticache" {
vpc_id = local.vpc_id

tags = merge(
var.tags,
var.elasticache_route_table_tags,
{
"Name" = "${var.name}-${var.elasticache_subnet_suffix}"
},
var.tags,
var.elasticache_route_table_tags,
)
}

Expand Down

0 comments on commit 24dba80

Please sign in to comment.