I have code which makes scheduled tasks in ECS clu...
# aws
p
I have code which makes scheduled tasks in ECS clusters using
aws_native.ecs.TaskDefinition
and
aws.cloudwatch.EventTarget
/`aws.cloudwatch.EventRule` I want to override some of the ENV in the task definition when we're in the test environment. When I look in the AWS console in the "Update Scheduled Task" dialog there is an optional Container overrides section where I can override the CMD and the ENV for the container run by that scheduled task. The PulumiAI helpfully told me I could add an overrides section to the EventTarget but on running the code I discovered that was an hallucination. I've checked the docs and neither the EventTarget nor the ecsTarget within that have an overrides section. Is this a limitation of the AWS package? Does the native package allow me to do that? (I'll check) or do I just need to make twice the number of Task Definitions and be thankful I only have 2 environments?
I can't see anything in aws-native which would help. :/
q
IIRC this is part of the
input
property of the
aws.cloudwatch.EventTarget
: https://www.pulumi.com/registry/packages/aws/api-docs/cloudwatch/eventtarget/#ecs-run-task-with-role-and-task-override-usage the
input
property is just a json string that should be a valid ECS
RunTask
TaskOverride.
p
I'll give that a whirl soon.