Member-only story
Cloudflare and AWS API Gateway
Connecting API Gateway and Cloudflare for our client’s pipeline
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:
- Log into your Cloudflare dashboard
- Navigate to the SSL/TLS section
- Click on Origin Server
- 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…