-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(ec2): add MachineImage
factory, document instance replacement
#6065
Conversation
Some MachineImages get updated automatically (causing unexpected instance replacement), and some don't. Update the documentation to very clearly note which image is which, and that using a particular type of image may cause your instance to be replaced. Also add a class with static factory functions to make an enum-like pattern, to be in line with other places where the user has a choice of implementations. Fixes #5675. Also note that VPC lookups are cached, which hopefully addresses #6025.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
* The VPC information will be cached in `cdk.context.json` and the same VPC | ||
* will be used on future runs. To refresh the lookup, you will have to | ||
* evict the value from the cache using the `cdk context` command. See | ||
* https://docs.aws.amazon.com/cdk/latest/guide/context.html for more information. | ||
*/ |
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.
Much needed!
Thank you for contributing! Your pull request is now being automatically merged. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request is now being automatically merged. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Some MachineImages get updated automatically (causing unexpected
instance replacement), and some don't. Update the documentation to very
clearly note which image is which, and that using a particular type of
image may cause your instance to be replaced.
Also add a class with static factory functions to make an enum-like
pattern, to be in line with other places where the user has a choice
of implementations.
Fixes #5675.
Also note that VPC lookups are cached, which hopefully addresses #6025.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license