-
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
(aws-ec2): vpcIpv6CidrBlocks missing from interface IVpc #19525
Comments
I think this should be easy to add. We will just need to add this to the vpc context provider. I am unassigning and marking this issue as We use +1s to help prioritize our work, and are happy to revaluate this issue based on community feedback. You can reach out to the cdk.dev community on Slack to solicit support for reprioritization. |
This PR adds dual-stack mode support to RDS instances and clusters. ### Aurora - Working with a DB cluster in a VPC https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html - CloudFormation AWS::RDS::DBCluster https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-networktype ```ts declare const vpc: ec2.Vpc; // VPC and subnets must have IPv6 CIDR blocks const cluster = new rds.DatabaseCluster(this, 'Database', { engine: rds.DatabaseClusterEngine.auroraMysql({ version: rds.AuroraMysqlEngineVersion.VER_3_02_1 }), instanceProps: { vpc, publiclyAccessible: false, }, networkType: rds.NetworkType.DUAL, }); ``` ### RDS - Working with a DB instance in a VPC https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html - CloudFormation AWS::RDS::DBInstance https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-networktype ```ts declare const vpc: ec2.Vpc; // VPC and subnets must have IPv6 CIDR blocks const instance = new rds.DatabaseInstance(this, 'Instance', { engine: rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_14_4 }), vpc, networkType: rds.NetworkType.DUAL, publiclyAccessible: false, }); ``` Note: CDK cannot check whether the specified VPC and subnets have actually IPv6 CIDR blocks because `ec2.IVpc` and `ec2.ISubnet` does not have ipv6 attributes. (cf. #19525) ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
What is the problem?
When looking up an existing VPC with
Vpc.fromLookup(this, 'VPCexample', { vpcName: 'foobar' })
, there appears not to be any way to actually get the IPv6 CIDR blocks associated with the VPC as the interfaceIVpc
is missing the appropiate propertyvpcIpv6CidrBlocks
that is available in theVpc
construct.The
vpcCidrBlock
property only contains IPv4 addresses.We tried to use an escape hatch with
but this was unsuccessful as there is not enough overlap:
Reproduction Steps
const VPC = Vpc.fromLookup(this, 'exampleVPC', { vpcName: '<whatever>' })
console.log(VPC.vpcIpv6CidrBlocks)
-> This failsconsole.log(VPC.vpcCidrBlock)
-> This only shows IPv4What did you expect to happen?
I did expect to find out the attached IPv6 CIDR block of a VPC.
What actually happened?
See above Reproduction steps.
CDK CLI Version
2.15.0 (build 151055e)
Framework Version
No response
Node.js Version
16.11.26
OS
Linux & OSX
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: