Cloudflare domain to an AWS ApiGateway

Rodrigo Burgos - Feb 8 - - Dev Community

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.

. . . . . . . . . . . . . . . . . . . . . . .