We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like to create Route resources on an existing VPC.
My use case looks something like this:
const new_vpc = new ec2.VpcNetwork(this, 'new_vpc' { // ... }); const vpcId = 'vpc-xxx'; const existing_vpc = ec2.VpcNetwork.importFromContext(this, 'existing_vpc', { vpcId: vpcId, }); const pcx = new ec2.CfnVPCPeeringConnection(this, 'new_vpc-existing_vpc', { vpcId: vpcId, peerVpcId: new_vpc.vpcId, }); import_vpc.publicSubnets.forEach((subnet,index) => { new ec2.CfnRoute(this, 'route-' + index, { routeTableId: subnet.routeTableId, destinationCidrBlock: new_vpc.cidr, vpcPeeringConnectionId: pcx.ref, }); });
The text was updated successfully, but these errors were encountered:
Related to #2926 but your code does not match to the structure of current CDK-Version (0.36.0).
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I would like to create Route resources on an existing VPC.
My use case looks something like this:
The text was updated successfully, but these errors were encountered: