I currently have my nodejs server in docker compose served on EC2 instance and my react app served on s3, both of them are behind two cloudfront distributions respectively.
I am fairly new to these AWS products, I would like to know how to config this AWS setup so when users access the original domains provided by s3 and EC2 (http), they would get redirected back to the cloudfront ones (https)?