Skip to content

Commit dcf3519

Browse files
Fix instance tags
1 parent 04f173a commit dcf3519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ resource "aws_launch_template" "x86" {
172172

173173
tag_specifications {
174174
resource_type = "instance"
175-
tags = var.tags
175+
tags = merge(var.tags, { "depot-connection" = var.connection-id })
176176
}
177177

178178
tag_specifications {
@@ -209,7 +209,7 @@ resource "aws_launch_template" "arm" {
209209

210210
tag_specifications {
211211
resource_type = "instance"
212-
tags = var.tags
212+
tags = merge(var.tags, { "depot-connection" = var.connection-id })
213213
}
214214

215215
tag_specifications {

0 commit comments

Comments
 (0)