-
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 deploy --exclusively
(-e
) no longer working in 2.38.0
#21661
Comments
I also had this same issue occur. The work around was indeed to revert to any version before 2.38.0. Personally and professionally I use layered deployments, and the '-e' flag is critical for that usage. Without it I would have to abandon CDK entirely. This is a critical bug for me, and I'm sure others as well. |
I cannot reproduce with a trivial stack deployment, so more must be going on:
|
References #21661
cdk deploy --exclusively
(-e
) no longer working in 2.38.0
Co-authored-by: Rico Huijbers <rix0rrr@gmail.com> Co-authored-by: Momo Kornher <mail@moritzkornher.de>
NOTICES 21661 cli: no stacks are deployed if the
If you don’t want to see a notice anymore, use "cdk acknowledge ". For example, "cdk acknowledge 21661". |
Version 2.38.1 has been released. |
So if the I need this for two main reasons:
|
Hi @nomike This has been resolved in v2.38.1 |
|
Status: RESOLVED in 2.38.1
Overview:
The
--exclusively
flag does not work with the v2.38.0 release.When the
--exclusively
flag is used to select stacks withdependencies, instead no stacks are deployed at all and the
deployment silently no-ops.
Solution:
Upgrade to 2.38.1
Workaround:
Do not upgrade to 2.38.0, downgrade if necessary
Describe the bug
Upgraded to aws-cdk v 2.38.0 today and noticed that deploying with the --exclusively flag no longer works. My aws pipelines also stopped working since i was installing the latest cdk version in the buildspecs.
This is a command that works with v 2.37.1
cdk deploy StaticAssetDeploymentStack -e
However, after upgrading to 2.38.0, it stops automatically after the synthesis.
The logs show
Synthesis time: 3.53s
then nothing else.
If i remove the -e flags, it works as expected, but will of course deploy dependencies first.
Expected Behavior
the -e flag should deploy the stack without dependencies
Current Behavior
it stops automatically after synthesis and the stack is not deployed.
Reproduction Steps
this is a sample stack. But the issue is not unique to this stack. I have others that fail as well
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.7.20
Framework Version
No response
Node.js Version
16.17.0
OS
macOs Monterey
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: