aws-cdk-lib/aws-stepfunctions: Configure IAM policy to redrive from failure on labelled execution for DistributedMap failures #33578
Labels
@aws-cdk/aws-iam
Related to AWS Identity and Access Management
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Currently when creating a state machine, the step function module automatically sets up necessary IAM policies to run a state machine as described here: https://github.com/aws/aws-cdk/blob/e03d11/packages/aws-cdk-lib/aws-stepfunctions/lib/state-machine.ts#L221-L411
However, the ability to redrive from failure from a DistributedMap step(s) is not included, so this has to be added via
addToRolePolicy
orattachToRole
see also #28820 (comment)
Use Case
I want to create a state machine in cdk without manually adding an inline IAM policy to the state machine role that grants
states:RedriveExecution
on labelled executionsProposed Solution
add a method to
aws-cdk-lib/aws-stepfunctions/lib/state-machine.ts
Other Information
No response
Acknowledgements
CDK version used
2.179.0
Environment details (OS name and version, etc.)
mac os
The text was updated successfully, but these errors were encountered: