Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-stepfunctions-tasks: support revision id in StepFunctionsStartExecution #26532

Open
2 tasks
AlJohri opened this issue Jul 27, 2023 · 2 comments
Open
2 tasks
Labels
@aws-cdk/aws-stepfunctions-tasks effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@AlJohri
Copy link

AlJohri commented Jul 27, 2023

Describe the feature

Step Functions now supports Versions and Aliases.

I would like to have the tasks.StepFunctionsStartExecution link to a specific state machine revision ID.

Use Case

The use case is where there is a parent and child nested step function. If a deploy occurs that updates the nested step function, this may break long running executions of the parent. By linking the parent step function to a revision of the child step function, we can prevent many such breakages.

Proposed Solution

Currently tasks.StepFunctionsStartExecution accepts a StateMachine. I would instead like to pass the stateMachineRevisionId which was added here: #26443

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

Latest

Environment details (OS name and version, etc.)

Amazon Linux 2

@AlJohri AlJohri added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jul 27, 2023
@wong-a
Copy link
Contributor

wong-a commented Jul 27, 2023

StartExecution only accepts qualified state machine ARNs for the startMachineArn API parameter, not a revisionId. The scope of this issue should be to support invoking a state machine version or alias in StepFunctionsStartExecution.

Another proposed solution is to add stateMachineArn parameter to the construct, which just takes a string, which the user can pass the reference to an ARN from a CfnStateMachineVersion or CfnStateMachineAlias or even a static string.

@peterwoodworth
Copy link
Contributor

Thanks for the additional context and clarification @wong-a

@peterwoodworth peterwoodworth added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jul 27, 2023
lpizzinidev added a commit to lpizzinidev/aws-cdk that referenced this issue Aug 1, 2023
lpizzinidev added a commit to lpizzinidev/aws-cdk that referenced this issue Aug 2, 2023
kaizencc added a commit to lpizzinidev/aws-cdk that referenced this issue Aug 17, 2023
lpizzinidev added a commit to lpizzinidev/aws-cdk that referenced this issue Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-stepfunctions-tasks effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
3 participants