Skip to content

Commit

Permalink
Merge pull request #6 from depot/add-tag-specification
Browse files Browse the repository at this point in the history
Add `tag_specifications` to propagate tags to instances & volumes
  • Loading branch information
kylegalbraith authored May 24, 2023
2 parents ae19ba9 + 2e629d7 commit 7e68b19
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,17 @@ resource "aws_launch_template" "x86" {
placement {
availability_zone = var.availability-zone
}

tag_specifications = [
{
resource_type = "instance"
tags = var.tags
},
{
resource_type = "volume"
tags = var.tags
},
]
}

resource "aws_launch_template" "arm" {
Expand Down Expand Up @@ -214,6 +225,17 @@ resource "aws_launch_template" "arm" {
placement {
availability_zone = var.availability-zone
}

tag_specifications = [
{
resource_type = "instance"
tags = var.tags
},
{
resource_type = "volume"
tags = var.tags
},
]
}

# cloud-agent ECS Task
Expand Down

0 comments on commit 7e68b19

Please sign in to comment.