Skip to content

Commit

Permalink
Add tags in example launch template
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru committed Feb 6, 2021
1 parent 881cf6b commit 9a5c42e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/autoscalinggroup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ resource "aws_launch_template" "default" {
enabled = false
}

# terraform-null-label example used here: Set tags on volumes
# terraform-null-label example used here: Set tags on everything that can be tagged
tag_specifications {
resource_type = "volume"
for_each = ["instance", "volume", "elastic-gpu", "spot-instance-request"]

resource_type = each.value
tags = module.label.tags
}

Expand Down

0 comments on commit 9a5c42e

Please sign in to comment.