I have an AWS instance with elastic IP. I configured the IP in Cloudflare with a subdomain. I created a new SSL in Cloudflare and configured in AWS to the instance. After that I tried to connect to the subdomain URL and I am facing the issue with Error Code : 521 - Web server is down.
I went through the docs in the community still did not help.
I connected with AWS team and they confirmed all from their side is working.
I can access that IP over HTTP. but HTTPS not supported.
Yes from the AWS Certificate manager I have imported the SSL certificate from Cloudflare and I added it to AWS beanstalk load balancer with HTTPS port 443
Then it should actually work. You just need to make sure the addresses from IP Ranges are not blocked. But I believe this is mentioned at the article you already linked anyhow.
I’d recommend to pause Cloudflare (Overview screen, bottom right) and make sure everything loads fine on HTTPS. Once it does, it should also work fine on Cloudflare.