1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
The issue you are seeing is likely due to how API Gateway handles static assets like images, JavaScript files etc differently than an Application Load Balancer.
When you make a request through API Gateway, it does not proxy the entire request to the backend. It handles the integration with the backend separately.
Check these:
- Make sure the backend Application Load Balancer is configured as a proxy integration in API Gateway. This will pass the entire request to the ALB.
- Check that the security groups allow traffic from API Gateway to the ALB on the necessary ports.
- As a workaround, you can host the static assets on S3 or CloudFront and update the URLs in your HTML/JS files to point to the S3/CloudFront endpoint instead of going through API Gateway.
- Consider using API Gateway private integrations if your backend is private. This allows private connectivity without going through a public endpoint.
関連するコンテンツ
- AWS公式更新しました 10ヶ月前
- AWS公式更新しました 2年前