I want to be able to update ecs scheduled tasks via ansible, using
- cloudwatchevent_rule:
name: ansitest
schedule_expression: “cron(0 20 * * ? *)”
description: test from ansible
targets:
- id: ansitest
arn: arn:aws:ecs:us-east-1:111111111:cluster/ecs-cluster-test
ecs_parameters:
task_definition_arn: arn:aws:ecs:us-east-1:11111111:task-definition/some-app:123
task_count: 1
am getting the following error:
ClientError: An error occurred (ValidationException) when calling the PutTargets operation: TaskDefinitionArn is empty for target ansitest
My questions -
Firstly, is cloudwatchevent_rule the correct command for updating ecs scheduled tasks?
Secondly, is the format above correct?
thanks
Derek