-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
Describe the feature
API Gateway now supports ipAddressType DUAL_STACK.
https://aws.amazon.com/blogs/aws/amazon-api-gateway-now-supports-dual-stack-ipv4-and-ipv6-endpoints/
CDK should fully support Dualstack ApiGateway endpoints.
With the current CDK (2.195.0) it's not possible to fully set up a DualStack-HttpApi-Gateway. The option is already available for software.amazon.awscdk.services.apigatewayv2.HttpApi, but it's not possible to set the ipAddressType for the software.amazon.awscdk.services.apigatewayv2.DomainName even though software.amazon.awscdk.services.apigatewayv2.CfnDomainName.DomainNameConfigurationPropertysupports a IpAddressType-parameter.
When deploying it with a DUAL_STACK ipAddressType for the HttpApi, the "IP address type" at "API details" for the created API is set to Dualstack, but the "Endpoint configuration > IP address type" at AWS console's "API Gateway > Custom domain names" isn't set. Even if I set an AAAA-Record, the IPv6 address doesn't get resolved.
Use Case
Create or add IPv6 support for API Gateway
Proposed Solution
const dn = new apigwv2.DomainName(this, 'DN', {
domainName: domainName,
certificate: acm.Certificate.fromCertificateArn(this, 'cert', certArn),
ipAddressType: apigwv2.IpAddressType.DUAL_STACK,
});
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
AWS CDK Library version (aws-cdk-lib)
2.195.0
AWS CDK CLI version
2.1014.0 (build e4c6a17)
Environment details (OS name and version, etc.)
macOS Sequoia 15.4.1 (24E263)