-
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
CDK CLI: execute deployment on CONFIGURATION_COMPLETE event #29443
Comments
The CDK should not take this feature. Here's a few reasons why:
For clarity, CFN's optimistic stabilization feature is always on, for the resources that support it. It's not something a user can toggle on their stack. This feature request is only about leveraging the |
|
Describe the feature
When creating a CloudFormation stack, a resource can sometimes take longer to provision, making it appear as if it’s stuck in an IN_PROGRESS state. This can be because CloudFormation is waiting for the resource to complete consistency checks during its resource stabilization step. To improve visibility into resource provisioning status, CloudFormation has introduced a new “CONFIGURATION_COMPLETE” event. This event is emitted at both the individual resource level and the overall stack level during the create workflow when resource(s) creation or configuration is complete, but stabilization is still in progress.
CDK can use this new event and speed up the deployment time.
Use Case
I'm annoyed by how long it takes to deploy or redeploy my CDK app while I'm developing and testing. I can speed it up by taking a risk with CloudFormation's stabilization phase, but it's not safe for production.
Proposed Solution
Propose new CDK CLI command or additional switch to
cdk deploy
to execute a new optimistic stabilization strategy to shorten stack deployment times. In this mode, CDK will continue the deployment sequence using the newCONFIGURATION_COMPLETE
event and not wait forCREATE_COMPLETE
.Other Information
There's a chance that resource creation might fail during the stabilization phase, which occurs between the
CONFIGURATION_COMPLETE
event and theCREATE_COMPLETE
event. This shouldn't be the default deployment mode, and users should be warned about the risk. CDK deploy should be capable of rolling back in case of late-arriving resource creation failures.Acknowledgements
CDK version used
2.132.0
Environment details (OS name and version, etc.)
MACOS
The text was updated successfully, but these errors were encountered: