Member-only story

Cloudflare and AWS API Gateway

Connecting API Gateway and Cloudflare for our client’s pipeline

Lio ♾️☁️
5 min readMar 1, 2025

Hi everyone, so glad to be back. Our client recently had been attacked and so we decided to do some major changes in our code. Today we will excplore how we did that for our clients.

In this article, we’ll explore how we can easily connect Cloudflare to AWS API Gateway. This would enhance our API’s security, performance, and scalability. This step-by-step guide will walk us through the process, from setting up certificates to troubleshooting common issues.

Getting Client Certificate on Cloudflare

First of all, we need to generate a TLS certificate on Cloudflare to establish trust with AWS. To do this:

  1. Log into your Cloudflare dashboard
  2. Navigate to the SSL/TLS section
  3. Click on Origin Server
  4. Select Create Certificate

When creating the SSL certificate, we will need to specify the subdomain scope. For example, using *.mydomain.com allows the certificate to cover all subdomains under mydomain.com…

--

--

Lio ♾️☁️
Lio ♾️☁️

Written by Lio ♾️☁️

Binge 🥰 Jesus | Code 🧑‍💻 | Teach 🧑‍🏫| Build 🗼 | Ship 🚢 | Repeat ♻️

No responses yet