Skip to content

Commit

Permalink
fix(iam): fix trust relationship for ecs task role
Browse files Browse the repository at this point in the history
  • Loading branch information
briancaffey committed Nov 7, 2022
1 parent f77a66e commit 57010d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constructs/internal/ecs/iam/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class EcsRoles extends Construct {
// IAM
const ecsTaskRole = new Role(this, 'EcsTaskRole', {
roleName: `${stackName}EcsTaskRole`,
assumedBy: new ServicePrincipal('ecs.amazonaws.com'),
assumedBy: new ServicePrincipal('ecs-tasks.amazonaws.com'),
});

ecsTaskRole.addToPolicy(new PolicyStatement({
Expand Down

0 comments on commit 57010d4

Please sign in to comment.