Skip to content

Commit d09462b

Browse files
committed
feat(stepfunctions): add grant API for RedriveExecution
Adds a grant API for RedriveExecution as described here: https://docs.aws.amazon.com/step-functions/latest/dg/redrive-executions.html#redrive-iam-permission fixes #33578
1 parent ce88c76 commit d09462b

File tree

10 files changed

+275
-208
lines changed

10 files changed

+275
-208
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-distributed.js.snapshot/cdk-stepfunctions-map-distributed-stack.assets.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-distributed.js.snapshot/cdk-stepfunctions-map-distributed-stack.template.json

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,76 @@
11
{
22
"Resources": {
3+
"Role1ABCC5F0": {
4+
"Type": "AWS::IAM::Role",
5+
"Properties": {
6+
"AssumeRolePolicyDocument": {
7+
"Statement": [
8+
{
9+
"Action": "sts:AssumeRole",
10+
"Effect": "Allow",
11+
"Principal": {
12+
"Service": "lambda.amazonaws.com"
13+
}
14+
}
15+
],
16+
"Version": "2012-10-17"
17+
}
18+
}
19+
},
20+
"RoleDefaultPolicy5FFB7DAB": {
21+
"Type": "AWS::IAM::Policy",
22+
"Properties": {
23+
"PolicyDocument": {
24+
"Statement": [
25+
{
26+
"Action": "states:RedriveExecution",
27+
"Effect": "Allow",
28+
"Resource": {
29+
"Fn::Join": [
30+
"",
31+
[
32+
"arn:",
33+
{
34+
"Ref": "AWS::Partition"
35+
},
36+
":states:",
37+
{
38+
"Ref": "AWS::Region"
39+
},
40+
":",
41+
{
42+
"Ref": "AWS::AccountId"
43+
},
44+
":execution:",
45+
{
46+
"Fn::Select": [
47+
6,
48+
{
49+
"Fn::Split": [
50+
":",
51+
{
52+
"Ref": "StateMachine2E01A3A5"
53+
}
54+
]
55+
}
56+
]
57+
},
58+
":*"
59+
]
60+
]
61+
}
62+
}
63+
],
64+
"Version": "2012-10-17"
65+
},
66+
"PolicyName": "RoleDefaultPolicy5FFB7DAB",
67+
"Roles": [
68+
{
69+
"Ref": "Role1ABCC5F0"
70+
}
71+
]
72+
}
73+
},
374
"StateMachineRoleB840431D": {
475
"Type": "AWS::IAM::Role",
576
"Properties": {

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-distributed.js.snapshot/cdk.out

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-distributed.js.snapshot/cdkstepfunctionsmapdistributedintegDefaultTestDeployAssert69F30423.assets.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-distributed.js.snapshot/integ.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.map-distributed.js.snapshot/manifest.json

Lines changed: 113 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)