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.

Feb 8, 2025 - 17:00
 0
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.