-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(stepfunctions): example for using statemachine versions and aliases with StateMachine construct #26441
Comments
We don't have any higher level constructs for State Machine Versions or Aliases, so the CloudFormation documentation is considered sufficient in tandem with the existing L2 construct StateMachine. If we convert this instead to a feature request for supporting higher level constructs for StateMachine Version and Alias, we can do that. |
I disagree. Users benefit from complete code examples and the existing docs don't show how to use all three resources together. If you think that doesn't belong in CDK docs for some reason, we will put that in the Step Functions developer guide: https://docs.aws.amazon.com/step-functions/latest/dg/version-rolling-deployment.html I don't see a need for higher level constructs for StateMachineVersion or StateMachineAlias at the moment. The only abstraction I'd see happening is extending StateMachine to automatically create versions and aliases similar to AWS::Serverless::StateMachine in SAM. |
If you want a full example involving multiple resources, this would best be added as an example in the examples repo |
I can't transfer this issue to that repo since these repositories live in different orgs, so I'll close this and allow you to duplicate this there if desired. |
|
My 2¢: Versions and aliases as a fundamental part of deploying state machines safely in a continuous deployment setting. This is why I think there should be a basic example of this in the CDK construct docs, where users first go to learn how to use it. Happy to move that over to aws-cdk-examples and Step Functions docs if that's a no-no here |
Describe the issue
Step Functions supports gradual deployments through versions and aliases. It would be nice to have some examples of how to achieve this in CDK in the stepfunctions module docs.
Example:
Links
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions-readme.html
The text was updated successfully, but these errors were encountered: