Skip to content

Commit 7e68b19

Browse files
Merge pull request #6 from depot/add-tag-specification
Add `tag_specifications` to propagate tags to instances & volumes
2 parents ae19ba9 + 2e629d7 commit 7e68b19

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

main.tf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,17 @@ resource "aws_launch_template" "x86" {
178178
placement {
179179
availability_zone = var.availability-zone
180180
}
181+
182+
tag_specifications = [
183+
{
184+
resource_type = "instance"
185+
tags = var.tags
186+
},
187+
{
188+
resource_type = "volume"
189+
tags = var.tags
190+
},
191+
]
181192
}
182193

183194
resource "aws_launch_template" "arm" {
@@ -214,6 +225,17 @@ resource "aws_launch_template" "arm" {
214225
placement {
215226
availability_zone = var.availability-zone
216227
}
228+
229+
tag_specifications = [
230+
{
231+
resource_type = "instance"
232+
tags = var.tags
233+
},
234+
{
235+
resource_type = "volume"
236+
tags = var.tags
237+
},
238+
]
217239
}
218240

219241
# cloud-agent ECS Task

0 commit comments

Comments
 (0)