I'm getting Cloudfront 502 errors in the communication to the ALB origin, which results in:
CloudFront wasn't able to connect to the origin.
The Cloudfront logs show me OriginConnectError
.
I've gone back and forth regarding what the issue could be, and I'm not sure how to debug this further.
Any ideas greatly appreciated!
Detailed
- My application uses a wildcard A-record to handle all subdomains. It routes to Cloudfront
- Cloudfront has a certificate in us-east-1 with *.example.com as domain name
- Cloudfront points to ALB in eu-west-1 with a different *.example.com certificate from eu-west-1
- Creating an alias record that points directly to ALB works, but I want it to point to Cloudfront. So the App is up and running.