CloudFront 返回 502

CloudFront 返回 502

我已配置 CloudFront 分发版以指向应用程序负载均衡器 (ALB)。ALB 指向 lambda 函数。我已在 Route53 中配置 A 记录以指向 CloudFront 分发版。

通过其生成的域名直接访问 ALB 是可行的(即,lambda 被访问、运行并返回 OK)。

尝试通过域访问应用程序,CloudFront 返回 502 错误:

502 ERROR

The request could not be satisfied.

CloudFront wasn't able to connect to the origin. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.

If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

我该如何最好地解决此问题?我可能经常陷入哪些陷阱?

相关内容