Skip to content

Commit ab26940

Browse files
[PRMP-932] - Add replace function to target latest ecs task
1 parent 0b5a58f commit ab26940

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

infrastructure/schedules.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ resource "aws_scheduler_schedule" "ods_weekly_update_ecs" {
130130
arn = module.ndr-ecs-fargate-ods-update[0].ecs_cluster_arn
131131
role_arn = aws_iam_role.ods_weekly_update_ecs_execution[0].arn
132132
ecs_parameters {
133-
task_definition_arn = module.ndr-ecs-fargate-ods-update[0].task_definition_arn
133+
task_definition_arn = replace(module.ndr-ecs-fargate-ods-update[0].task_definition_arn, "/:[0-9]+$/", "")
134134
task_count = 1
135135
launch_type = "FARGATE"
136136
network_configuration {

0 commit comments

Comments
 (0)