DEV Community

Cover image for Cloudflare domain to an AWS ApiGateway
Rodrigo Burgos
Rodrigo Burgos

Posted on

Cloudflare domain to an AWS ApiGateway

Assuming that you already bought an domain on cloudflare, go to:

DNS > Records

Click on Add Record

Type should be CNAME, if the api is using the root of your domain aka www.domain.com, the name should be @, otherelse use the sudomain e.g. api.

The value of the target option should be the API Gateway domain name, you can find it on:

API Gateway > APIs > Custom domain names

Configure, within Api Mapping, the API of your choice, aswell the staging.

That's all.

Top comments (0)