Skip to content

Commit

Permalink
fix: merge pull request #62 from mang0kitty, solve asg IAM permission…
Browse files Browse the repository at this point in the history
… issues
  • Loading branch information
YikaiHu committed Sep 26, 2021
1 parent 65e3886 commit 24f1d4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/constructs/lib/cfn-step-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export class CloudFormationStateMachine extends cdk.Construct {
"ecs:ListTasks",
"ecs:RegisterTaskDefinition",
"ecs:DeregisterTaskDefinition",
"ecs:DescribeTaskDefinition",
],
resources: [`*`]
}),
Expand Down Expand Up @@ -321,6 +322,14 @@ export class CloudFormationStateMachine extends cdk.Construct {
],
resources: [`*`]
}),
new iam.PolicyStatement({
actions: [
"iam:CreateServiceLinkedRole",
],
resources: [
`arn:${cdk.Aws.PARTITION}:iam::${cdk.Aws.ACCOUNT_ID}:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling`
]
}),
]
});

Expand Down

0 comments on commit 24f1d4d

Please sign in to comment.