Skip to content

Commit 6af81f9

Browse files
committed
Added nullstone.io/version tag to task definition.
1 parent e8389c4 commit 6af81f9

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.3.19 (Jul 09, 2025)
2+
* Added `nullstone.io/version` tag to task definition.
3+
14
# 0.3.18 (Mar 31, 2025)
25
* Fixed `launch_type` injected into capabilities.
36

task.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ locals {
22
main_container_name = "main"
33
command = length(var.command) > 0 ? var.command : null
44

5+
task_tags = merge(local.tags, {
6+
"nullstone.io/version" = local.app_version
7+
})
8+
59
container_definition = {
610
name = local.main_container_name
711
command = local.command
@@ -39,7 +43,7 @@ resource "aws_ecs_task_definition" "this" {
3943
execution_role_arn = aws_iam_role.execution.arn
4044
depends_on = [aws_iam_role_policy.execution]
4145
container_definitions = jsonencode(concat([local.container_definition], local.addl_container_defs))
42-
tags = local.tags
46+
tags = local.task_tags
4347
task_role_arn = aws_iam_role.task.arn
4448

4549
dynamic "volume" {

0 commit comments

Comments
 (0)