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

Update AMI parameter #207

Merged
merged 1 commit into from
Jan 27, 2021
Merged

Update AMI parameter #207

merged 1 commit into from
Jan 27, 2021

Conversation

jamie-lynch
Copy link
Contributor

What does this change?

This PR updates the type of the parameter created auto-magically in the GuAutoscalaingGroup to be a GuAMIParameter. Using this parameter changes the Type value to AWS::EC2::Image::Id which will restrict the values that can be input, offering better validation.

Does this change require changes to existing projects or CDK CLI?

This change will update the parameter anywhere it is currently used which will be seen at deploy time. Given that an invalid value would have caused the deploy to fail, this shouldn't have any effect.

How to test

See the updated unit test and verify that it passes.

How can we measure success?

Better validation of parameter values.

@jamie-lynch jamie-lynch requested a review from a team January 26, 2021 16:21
@jamie-lynch jamie-lynch merged commit 62802ba into main Jan 27, 2021
@jamie-lynch jamie-lynch deleted the jl/ami-param branch January 27, 2021 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants