AWS Gateway Custom Domain Using Cloudflare.com

I am new to serverless terms and need a little customization of the custom domain on the AWS gateway.

Everything works fine with the endpoint created by aws ... execute-api.eu-west-1.amazonaws.com/dev/api/v1/user/1

I tried a lot of things, both flexible SSL on cloudflare (ends in redirect cycles) and FULL SSL (where I upload / print certificate information and RSA Root in the chain (I don’t know if this is correct)), this works. but in fact a slow, direct call to the gateway endpoint takes about 200 ms. - but with a custom domain, it takes up to 2 seconds. BAH :(

therefore, I believe that this is the wrong way to do this.

I found the root certificates that I used for chain information here.

https://support.cloudflare.com/hc/en-us/articles/218689638-What-are-the-root-certificate-authorities-CAs-used-with-CloudFlare-Origin-CA-

Hope someone can point me in the right direction.

+5
source share

Source: https://habr.com/ru/post/1262936/


All Articles