-
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
feat(cli): --hotswap will not use CFN anymore, --hotswap-fallback to fall back if necessary #23653
Conversation
…rties changed' case
✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
it will ignore it and display that ignored change. | ||
To have hotswap fall back and perform a full CloudFormation deployment, | ||
exactly like `cdk deploy` does without the `--hotswap` flag, | ||
specify `--hotswap-fallback`, like so: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a name along this line is better?
specify `--hotswap-fallback`, like so: | |
specify `--hotswap-all`, like so: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a bit misleading, because it implies that all the resources will be hotswapped, when they'll be deployed via CFN. We could be really verbose and do --hotswap-fallback-to-cfn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe --hotswap-only
could mean only update the hot-swappable things. Adding a new flag like that instead of changing the behavior of the existing flag could prevent breaking all the scripts that are already using that flag. It also allows the documentation to remain correct.
And --with-hotswap
could be added as an alias for --hotswap
if the original flag name is not clear enough.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Changes the behavior of
--hotswap
to ignore all non-hotswappable changes and hotswap what it can. This works at two levels: changes to non-hotswappable resources are ignored, as well as non-hotswappable changes to hotswappable resources (egTags
on a Lambda Function).In addition, non-hotswappable changes are now logged; the logical ID, rejected changes, resource type, and reason why the changes were rejected are all provided for each non-hotswappable change.
At some point, support for hotswapping lambda function tags was added. This either broke or simply never worked, so this PR removes all logic for hotswapping tags.
The existing behavior of
--hotswap
can be used in--hotswap-fallback
. It is preserved and unmodified by this change.Closes #22784, #21773, #21556, #23640.
All Submissions:
Adding new Construct Runtime Dependencies:
New Features
yarn integ
to deploy the infrastructure and generate the snapshot (i.e.yarn integ
without--dry-run
)?By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license