When an EventBridge Rule targets an ECS Task, it needs an IAM role that trusts events.amazonaws.com and has permission to run ECS tasks. Unlike Lambda targets (which use resource-based policies), ECS targets require an explicit IAM execution role ARN.
Paste into this field
EventBridge Rule → roleArnOutput looks like
arn:aws:iam::123456789012:role/EventBridgeECSExecutionRoleNavigate to IAM → Roles → "Create role".
Choose "AWS service" → from the dropdown select "EventBridge". This configures the trust policy automatically.
Search for and attach the AWS managed policy: AmazonECSTaskExecutionRolePolicy. Also attach an inline policy for RunTask:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["ecs:RunTask"],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": "*",
"Condition": {
"StringLike": {"iam:PassedToService": "ecs-tasks.amazonaws.com"}
}
}
]
}Name it EventBridgeECSExecutionRole (or descriptive to your project).
Click into the role → copy the ARN. Select your EventBridge Rule node on the canvas → open Advanced settings → paste the ARN into "IAM Role ARN (ECS / Step Functions targets)".
Once you have the value, go back to CloudStack Canvas and paste it into the highlighted field.
CloudStack Canvas · Validation Guide