-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typo: taskRole should be corrected to executionRole #2015
Typo: taskRole should be corrected to executionRole #2015
Comments
I've gone back and forth on this, and I think there are cases in which it fails when we just put Can you share some of your code so that we can try to tease out in which cases it needs to be which value? |
cc @SoManyHs @clareliguori any insights? I'm fairly sure I needed to put |
Here is my code for creating the CloudWatch Event triggered ECS Task:
Another thing I think that is worth mentioning is that the "Task Role" created for my ECS Task has no policies attached to it so it is basically an empty role. I can see that is probably also why it does not do anything when passed to CloudWatch and I have to pass the "Execution Role" instead. Thanks. |
The line below should use
executionRole
instead oftaskRole
.https://github.com/awslabs/aws-cdk/blob/3117cd35e02b2bd5f0845ffd14277bbee80eb09d/packages/%40aws-cdk/aws-ecs/lib/ec2/ec2-event-rule-target.ts#L98
For task that pulls the image from ECR, this typo causes CloudWatch Event to not able to invoke the task.
Thanks.
The text was updated successfully, but these errors were encountered: