What problem does it solve?
CDK v2 throws a TypeError when attempting to create a Route53 ARecord alias target for an API Gateway custom domain, as the aws_apigateway.DomainName construct lacks the required bind() method from the IAliasRecordTarget interface, breaking infrastructure as code deployments for this common AWS pattern.
Core Features & Use Cases
- Tested Workaround Implementation: Provides a working low-level CfnRecordSet construct that replaces the broken high-level ARecord to create valid alias DNS records for API Gateway custom domains.
- Compatibility Guidance: Includes notes on known CDK v2 version compatibility issues with alias targets and recommended stable library versions to avoid related errors.
- Use Case: Developers building AWS serverless applications with API Gateway custom domains and Route53 DNS in CDK v2 can use this skill to resolve the binding error and successfully deploy their infrastructure.
Quick Start
Use this skill to implement a working Route53 A alias record for your CDK v2 API Gateway custom domain to resolve the bind() method deployment error.