Great content. Why did you choose HTTP as the protocol to connect to the origin when setting up the cloudfront distribution? Follow up: would any of the steps change if one chooses HTTPS instead? Thanks so much!
Good point! Yes, we should use HTTPS since the ALB is internet-facing, and traffic between CloudFront and the ALB will traverse the public internet. Here are the additional steps: ALB Configuration: Set up an HTTPS listener and associate an SSL/TLS certificate from ACM. CloudFront Settings: Configure CloudFront to use HTTPS with the ALB. Security Group Configuration: Ensure only HTTPS traffic is allowed to the ALB by updating security group. Thanks!
Great content. Why did you choose HTTP as the protocol to connect to the origin when setting up the cloudfront distribution? Follow up: would any of the steps change if one chooses HTTPS instead?
Thanks so much!
Good point! Yes, we should use HTTPS since the ALB is internet-facing, and traffic between CloudFront and the ALB will traverse the public internet.
Here are the additional steps:
ALB Configuration: Set up an HTTPS listener and associate an SSL/TLS certificate from ACM.
CloudFront Settings: Configure CloudFront to use HTTPS with the ALB.
Security Group Configuration: Ensure only HTTPS traffic is allowed to the ALB by updating security group.
Thanks!