Skip to content

Commit 24f1d4d

Browse files
committed
fix: merge pull request #62 from mang0kitty, solve asg IAM permission issues
1 parent 65e3886 commit 24f1d4d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/constructs/lib/cfn-step-functions.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ export class CloudFormationStateMachine extends cdk.Construct {
202202
"ecs:ListTasks",
203203
"ecs:RegisterTaskDefinition",
204204
"ecs:DeregisterTaskDefinition",
205+
"ecs:DescribeTaskDefinition",
205206
],
206207
resources: [`*`]
207208
}),
@@ -321,6 +322,14 @@ export class CloudFormationStateMachine extends cdk.Construct {
321322
],
322323
resources: [`*`]
323324
}),
325+
new iam.PolicyStatement({
326+
actions: [
327+
"iam:CreateServiceLinkedRole",
328+
],
329+
resources: [
330+
`arn:${cdk.Aws.PARTITION}:iam::${cdk.Aws.ACCOUNT_ID}:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling`
331+
]
332+
}),
324333
]
325334
});
326335

0 commit comments

Comments
 (0)