Skip to content

Conversation

@ayush987goyal
Copy link
Contributor

@ayush987goyal ayush987goyal commented Jan 7, 2021

fix(apigatewayv2): specifying subnets to vpclink explicitly adds extra subnets

BREAKING CHANGE: subnets prop in VpcLink resource now takes SubnetSelection instead of ISubnet[]

closes #12083


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Jan 7, 2021

@github-actions github-actions bot added the @aws-cdk/aws-apigatewayv2 Related to Amazon API Gateway v2 label Jan 7, 2021
@ayush987goyal ayush987goyal requested a review from nija-at January 7, 2021 16:06
@nija-at nija-at changed the title fix(apigatewayv2): specifying subnets to vpclink explicitly adds extra subnets fix(apigatewayv2): private subnets are added to vpclink when not specified Jan 7, 2021
Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 💯

@ayush987goyal
Copy link
Contributor Author

ayush987goyal commented Jan 7, 2021

@nija-at The title of this fix can be misleading since by default we add private subnets of the VPC if no subnets are specified

@nija-at nija-at changed the title fix(apigatewayv2): private subnets are added to vpclink when not specified fix(apigatewayv2): vpclink - explicit subnet specification still causes private subnets to be included Jan 7, 2021
@mergify
Copy link
Contributor

mergify bot commented Jan 7, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Jan 7, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 336a58f into aws:master Jan 7, 2021
@ayush987goyal ayush987goyal deleted the pr/vpclink-fix branch January 8, 2021 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@aws-cdk/aws-apigatewayv2 Related to Amazon API Gateway v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(apigatewayv2): VpcLink subnet selection ignored

2 participants