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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more