-
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
feat(rds): dual-stack mode support #22596
Conversation
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.
This looks pretty good, we just need the extra tests I commented below.
@@ -457,6 +457,25 @@ describe('cluster', () => { | |||
}).toThrow(/You cannot specify both parameterGroup and parameters/); | |||
}); | |||
|
|||
test('instance with dual-stack network type', () => { |
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.
We need a test case where IPV4 is explicitly set.
@@ -321,6 +321,20 @@ describe('instance', () => { | |||
}); | |||
}); | |||
|
|||
test('instance with dualstack network type', () => { |
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.
We need a test case where IPV4 is explicitly set.
cfnSubnet.addDependsOn(ipv6); | ||
}); | ||
|
||
new rds.DatabaseCluster(stack, 'Cluster', { |
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.
We need a test case where IPV4 is explicitly set.
cfnSubnet.addDependsOn(ipv6); | ||
}); | ||
|
||
new rds.DatabaseInstance(stack, 'Instance', { |
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.
We need a test case where IPV4 is explicitly set.
Pull request has been modified.
@TheRealAmazonKendra Thank you for review I've added tests for IPV4 explicitly. |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
This PR adds dual-stack mode support to RDS instances and clusters.
Aurora
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-networktype
RDS
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-networktype
Note: CDK cannot check whether the specified VPC and subnets have actually IPv6 CIDR blocks because
ec2.IVpc
andec2.ISubnet
does not have ipv6 attributes. (cf. #19525)All Submissions:
Adding new Unconventional Dependencies:
New Features
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