Skip to content

Commit

Permalink
add local tags
Browse files Browse the repository at this point in the history
  • Loading branch information
marciogoda committed May 10, 2024
1 parent 813ea68 commit 026544b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
locals {
service_name = "${var.env}-${var.release["component"]}"
full_service_name = "${local.service_name}${var.name_suffix}"

tags = merge({
"component" = var.release["component"]
"env" = var.release["env"]
"team" = var.release["team"]
"version" = var.release["version"]
})
}

module "ecs_update_monitor" {
Expand Down Expand Up @@ -50,6 +57,7 @@ module "service" {
pack_and_distinct = var.pack_and_distinct
health_check_grace_period_seconds = var.health_check_grace_period_seconds
capacity_providers = local.capacity_providers
tags = local.tags
}

module "taskdef" {
Expand Down

0 comments on commit 026544b

Please sign in to comment.