Skip to content

Commit 9bdfc32

Browse files
committed
change permission setting
1 parent 226e664 commit 9bdfc32

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

typescript/stepfunction-external-definition/lib/stepfunction-external-definition-stack.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,7 @@ export class StepfunctionExternalDefinitionStack extends cdk.Stack {
2525
includeExecutionData: true,
2626
},
2727
});
28-
stateMachine.addToRolePolicy(new iam.PolicyStatement({
29-
actions: [
30-
'logs:CreateLogDelivery',
31-
'logs:GetLogDelivery',
32-
'logs:UpdateLogDelivery',
33-
'logs:DeleteLogDelivery',
34-
'logs:ListLogDeliveries',
35-
'logs:PutLogEvents',
36-
'logs:PutResourcePolicy',
37-
'logs:DescribeResourcePolicies',
38-
'logs:DescribeLogGroups'
39-
],
40-
resources: ['*'],
41-
}));
28+
logGroup.grantWrite(stateMachine.role);
4229

4330
const api = new apigateway.RestApi(this, "StepFuncApi", {
4431
restApiName: "StepFuncApi",

0 commit comments

Comments
 (0)