Home > Programming, Servers & Scripts >

Setting up AWS S3 Bucket Landing pages with Cloudflare? (12)


04-10-2019 03:53 PM #1 regjoe (Member)
Setting up AWS S3 Bucket Landing pages with Cloudflare?

Hello Moderators/Experienced affiliates, I have exhausted myself trying to setup Cloudflare for landing pages stored in S3 bucket. Can anyone please help or direct me on how to do this correctly? Before this I tried setting up Cloudfront but the domains didn't get issued with SSL ever after 2 days. Also tried hosting the pages on netlify, there I think hosting multiple landing pages on a single custom domain is not supported as per their documentation.


04-10-2019 05:11 PM #2 platinum (Veteran Member)

This guide will answer all your questions regarding AWS setup for landers

https://stmforum.com/forum/showthrea...-Cost-Way-Ever!


Sent from my iPhone using STM Forums mobile app


04-10-2019 07:06 PM #3 regjoe (Member)

Quote Originally Posted by platinum View Post
This guide will answer all your questions regarding AWS setup for landers

https://stmforum.com/forum/showthrea...-Cost-Way-Ever!


Sent from my iPhone using STM Forums mobile app
Thanks but I did the setup according to that guide requested certificate through AWS certificate manager. Still I didn't get the https after doing everything.


04-11-2019 02:18 PM #4 platinum (Veteran Member)

Quote Originally Posted by regjoe View Post
Thanks but I did the setup according to that guide requested certificate through AWS certificate manager. Still I didn't get the https after doing everything.
If you are using Cloudflare as your DNS provider, then when creating your Cloudflare distribution, under distribution settings click on "Request or Import a Certificate with ACM"


Once the ACM opens in a new tab follow the steps as below:

Add your domain with wildcards as shown in the following screenshot.


Select DNS Validation then click on Review


Once in the final step, copy the values as noted below to create a CNAME record on Cloudflare.


Once you've done it, in a matter of a few minutes or an hour, your certificate should appear as verified and you can use it for your landers hosted on AWS.

During the creation or modification of your Cloudfront distribution, under "Viewer Protocol Policy" select "Redirect HTTP to HTTPS" to redirect any http request to https using your Cloudflare certificate below.



Also to make sure your landers are being served fast, make sure to set "Compress Objects Automatically" to YES.


04-11-2019 02:49 PM #5 regjoe (Member)

Quote Originally Posted by platinum View Post
If you are using Cloudflare as your DNS provider, then when creating your Cloudflare distribution, under distribution settings click on "Request or Import a Certificate with ACM"


Once the ACM opens in a new tab follow the steps as below:

Add your domain with wildcards as shown in the following screenshot.


Select DNS Validation then click on Review


Once in the final step, copy the values as noted below to create a CNAME record on Cloudflare.


Once you've done it, in a matter of a few minutes or an hour, your certificate should appear as verified and you can use it for your landers hosted on AWS.

During the creation or modification of your Cloudfront distribution, under "Viewer Protocol Policy" select "Redirect HTTP to HTTPS" to redirect any http request to https using your Cloudflare certificate below.



Also to make sure your landers are being served fast, make sure to set "Compress Objects Automatically" to YES.
Did you mix up Cloudfront with Cloudflare? As per my understanding I did all those steps for Cloudfront and yet I didn't get https.


04-11-2019 04:18 PM #6 platinum (Veteran Member)

Yep, mixed both of them and works like a charm.


06-12-2019 03:01 PM #7 donalddick (Member)

Quote Originally Posted by platinum View Post
If you are using Cloudflare as your DNS provider, then when creating your Cloudflare distribution, under distribution settings click on "Request or Import a Certificate with ACM"


Once the ACM opens in a new tab follow the steps as below:

Add your domain with wildcards as shown in the following screenshot.


Select DNS Validation then click on Review


Once in the final step, copy the values as noted below to create a CNAME record on Cloudflare.


Once you've done it, in a matter of a few minutes or an hour, your certificate should appear as verified and you can use it for your landers hosted on AWS.

During the creation or modification of your Cloudfront distribution, under "Viewer Protocol Policy" select "Redirect HTTP to HTTPS" to redirect any http request to https using your Cloudflare certificate below.



Also to make sure your landers are being served fast, make sure to set "Compress Objects Automatically" to YES.
I'm trying to get a certificate for .live domain, but it doesn't validate it. IDK why. It works for .com perfectly.
So there is a possibility to use http domains or validate other (not .com) domains, do you know?


06-13-2019 08:24 AM #8 platinum (Veteran Member)

Quote Originally Posted by donalddick View Post
I'm trying to get a certificate for .live domain, but it doesn't validate it. IDK why. It works for .com perfectly.
So there is a possibility to use http domains or validate other (not .com) domains, do you know?
Haven't tested with such domains tbh.


06-13-2019 08:30 AM #9 donalddick (Member)

Smth has really changed to amazon. We cannot use http domains now and there are only 5 certificates that we can get,that's so sad


06-13-2019 10:43 PM #10 janm82 (Member)

Quote Originally Posted by platinum View Post
Yep, mixed both of them and works like a charm.
I am using S3 with Cloudfront. What would be the benefit of also adding Cloudflare?


06-14-2019 12:20 AM #11 jonte_ (Member)

Quote Originally Posted by donalddick View Post
Smth has really changed to amazon. We cannot use http domains now and there are only 5 certificates that we can get,that's so sad
You can get an increase on your SSL certificate limit by sending an email to support. I messaged them and got an increase to 1000 certificates, no questions asked.

Sent from my ONEPLUS A6003 using STM Forums mobile app


06-14-2019 08:53 AM #12 donalddick (Member)

Quote Originally Posted by jonte_ View Post
You can get an increase on your SSL certificate limit by sending an email to support. I messaged them and got an increase to 1000 certificates, no questions asked.

Sent from my ONEPLUS A6003 using STM Forums mobile app
Wow, thanks, mate


Home > Programming, Servers & Scripts >