Cloud Front 504: HTTP/1.1 504 Error

0

Hi team,

Previously my site was working correctly with ALB in AWS but now I have attached the Cloud front with the ALb but it's providing the 504 error. I have checked the all thing but resolve it.

Could you please help on this urgently?

Thanks, Anuj

AnujG
질문됨 7달 전222회 조회
2개 답변
0

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.

profile picture
HS
답변함 7달 전
  • 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.

0

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

AWS
Ananya
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠