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

Support cdk deploy stack update without change set - speed up deployments #8493

Closed
1 of 2 tasks
ottokruse opened this issue Jun 11, 2020 · 5 comments
Closed
1 of 2 tasks
Assignees
Labels
effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. package/tools Related to AWS CDK Tools or CLI

Comments

@ottokruse
Copy link

It would be great if there was an option for cdk deploy to do a direct CloudFormation deployment and not use a change set.

I was using serverless framework this morning and was amazed by how fast deployments were. For a second I thought AWS had implemented a general performance boost to CloudFormation :D But it turn out serverless is quicker in deploying than I was used to with CDK because serverless framework does not use change sets. That makes a ton of difference in deployment speed.

For most projects I am on we do not review change sets anyway (reviews are done as part of PR's and within the deployment pipeline).

Proposed Solution

Add a flag e.g. --no-changeset to cdk deploy command.

If specified, upon deployment a change set will not be created. If the stack exists, the stack is updated without change set.

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

This is a 🚀 Feature Request

@ottokruse ottokruse added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jun 11, 2020
@SomayaB SomayaB added the package/tools Related to AWS CDK Tools or CLI label Jun 11, 2020
@shivlaks shivlaks added the effort/medium Medium work item – several days of effort label Jun 15, 2020
@mikestopcontinues
Copy link

It's been a while. Any thoughs @shivlaks ?

@rix0rrr
Copy link
Contributor

rix0rrr commented Aug 13, 2020

Not possible. We use a number of CFN features that require a change set.

@rix0rrr rix0rrr closed this as completed Aug 13, 2020
@egglestonbd
Copy link

I understand --no-execute accomplishes the same thing.

@kichik
Copy link

kichik commented May 16, 2023

#22079 resolved this. If you're here from Google like me, this is how:

cdk deploy --method direct

Or:

export CDK_METHOD=direct
cdk deploy

@ottokruse
Copy link
Author

Thanks for the heads up !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

7 participants