-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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): improve errors around subnet selection #4089
Conversation
Selecting subnets by VPC and type is a confusing topic with some API misapprehensions. Try to fix that by renaming `subnetName` to `subnetGroupName`, and giving more clear error messages about legal values in case of misuse. Closes #3859.
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
* | ||
* At most one of `subnetType` and `subnetName` can be supplied. | ||
* At most one of `subnetType` and `subnetGroupName` can be supplied. |
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.
Should this be a union-like instead?
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. Bit hard to change right now, and then the right thing to make union-like is the whole subnetSelection
object. I predict there will be many more subnet selection requirements in the future.
Thank you for contributing! Your pull request is now being automatically merged. |
1 similar comment
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 |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Selecting subnets by VPC and type is a confusing topic with some API misapprehensions. Try to fix that by renaming `subnetName` to `subnetGroupName`, and giving more clear error messages about legal values in case of misuse. Closes #3859.
Selecting subnets by VPC and type is a confusing topic with some
API misapprehensions.
Try to fix that by renaming
subnetName
tosubnetGroupName
, andgiving more clear error messages about legal values in case of misuse.
Closes #3859.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license