- Le plus récent
- Le plus de votes
- La plupart des commentaires
Did you check all the possible causes mentioned in this page? For example, you need to change your ALB's security group to allow inbound traffic from CloudFront.
504 error implies that Cloudfront is not getting timely reply from ALB. It may be due communication issue between Cloudfront and ALB. For this, check network ACL of ALB subnets (since you already checked ALB security group).
Second reason can be Cloudfront times out before getting reply from ALB. For this, check the latency of response given by ALB and if it is more than Cloudfront timeout-> increase cloudfront timeout or improve the ALB latency. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/http-504-gateway-timeout.html#http-504-gateway-timeout-configure-security-groups
Contenus pertinents
- demandé il y a un an
- demandé il y a 10 mois
- Réponse acceptéedemandé il y a 2 ans
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
Yes I have checked the security group and allow the all traffic in security group but it's not working. It's throwing the error from cloud front.
Then did you use the right protocol? Depending on your distribution settings, your distribution might access the origin with HTTP or HTTPS protocol.