route53-targets: Add support for GraphqlApiDomainTarget #26109
Labels
@aws-cdk/aws-appsync
Related to AWS AppSync
@aws-cdk/aws-route53-targets
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Implement
GraphqlApiDomainTarget
inaws-cdk-lib/aws-route53-targets
to facilitate easily configuring A records for AppSync APIs with custom domains.Use Case
https://github.com/aws/aws-cdk/tree/main/packages/aws-cdk-lib/aws-route53-targets is missing an
IAliasRecordTarget
implementation for AWS AppSync GraphQL APIs. The AppSync docs suggest the use of a CNAME for custom domains, but that is not an option for me because I cannot create a CNAME at the apex of the hosted zone. Also, the Route 53 console UI supports AppSync domains as an alias target, and that should be reflected in CDK.Proposed Solution
I am currently using the following workaround in my project:
I based this implementation on the
UserPoolDomainTarget
, and it seems to work. Unsure if there is a different, preferable approach. Here it is in use:Other Information
No response
Acknowledgements
CDK version used
2.85.0
Environment details (OS name and version, etc.)
Mac OS
The text was updated successfully, but these errors were encountered: