Skip to content
This repository was archived by the owner on Jul 20, 2024. It is now read-only.

Commit e0be087

Browse files
authored
Fix user-specified tags to take precedence (#31)
1 parent a2b4a4c commit e0be087

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎variables.tf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,12 @@ variable "user_data_runcmd" {
7373
}
7474

7575
locals {
76-
// Generate common tags by merging variables and default Name
76+
// Merge the default tags and user-specified tags.
77+
// User-specified tags take precedence over the default.
7778
common_tags = merge(
78-
var.tags, {
79+
{
7980
Name = "nat-instance-${var.name}"
80-
})
81+
},
82+
var.tags,
83+
)
8184
}

0 commit comments

Comments
 (0)