Skip to content

Commit

Permalink
Add tags (#15)
Browse files Browse the repository at this point in the history
* add local tags

* add tags to task definition
  • Loading branch information
marciogoda authored May 15, 2024
1 parent 59267b9 commit 9f473c2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion 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" = terraform.workspace
"team" = var.release["team"]
"version" = var.release["version"]
})
}

module "ecs_update_monitor" {
Expand Down Expand Up @@ -55,7 +62,7 @@ module "service" {

module "taskdef" {
source = "mergermarket/task-definition-with-task-role/acuris"
version = "2.2.0"
version = "2.3.0"

family = local.full_service_name
container_definitions = [module.service_container_definition.rendered]
Expand All @@ -67,6 +74,7 @@ module "taskdef" {
network_mode = var.network_mode
is_test = var.is_test
placement_constraint_on_demand_only = var.placement_constraint_on_demand_only
tags = local.tags
}

module "service_container_definition" {
Expand Down

0 comments on commit 9f473c2

Please sign in to comment.