Posted On: Dec 6, 2021
Today, we are releasing a new feature in AWS AppSync that allows customers to use custom domain names with their AWS AppSync GraphQL APIs.
AWS AppSync is a managed GraphQL service that simplifies application development by letting you create a flexible API to securely access, manipulate, and combine data from one or more data sources with less network calls. With AWS AppSync, you create GraphQL APIs and realtime APIs that your applications interact with over the internet to access data, and receive realtime updates. AWS AppSync makes it easy for different types of applications to connect to a GraphQL API by supporting multiple modes of authorization simultaneously on the API.
We are now introducing a way for you to utilize simple and memorable endpoint URLs with domain names of your choosing by creating custom domain names that you can associate with AppSync APIs in your account. With custom domain names, you can utilize a single custom domain that works for both your GraphQL API and your Realtime API. To create a custom domain name in AppSync, you simply specify a domain name you own, and provide a valid AWS Certificate Manager certificate that covers your domain. AppSync will provide you with a new AppSync domain name. Once your custom domain name is created, you can associate it with any available AppSync API in your account. After you’ve updated your DNS record to route to the AppSync domain name, you can configure your applications to use the new GraphQL endpoint. You can change the API association on your custom domain name at any time (e.g., to execute blue/green deployments) without having to update your applications. When AppSync receives a request on the custom domain endpoint, the request is handled by the associated API.
Custom Domain Names are available in all AWS regions where AppSync is available. For more details, refer to our blog post and the AppSync documentation.