Forward request to multiple destination

0

Hi all,

I have an infrastructure consisting of Cloudfront and an ALB as the source of this distribution. I need to direct requests not only to the ALB Target Group but also to redirect requests to an external URL. Anyone have any suggestions on how to fix this issue?

Thank you

2개 답변
1

Hello

You can use Lambda@edge to redirect the requests, Please look at the Official Docs from the AWS , I also seen the article with sample configuration with node.js , this link will help you, Kindly look into it.

Thank You

profile picture
GK
답변함 2년 전
0

I assume there are some URIs that you want to redirect, while others are served by the ALB? While this can be done with Lambda@Edge as described above, you can also do this with AWS WAF, which would reduce the complexity of your configuration. This blog post: https://aws.amazon.com/blogs/security/customize-requests-and-responses-with-aws-waf/ describes various options for achieving this with WAF. Note that you would attach WAF to your CloudFront distribution rather than your ALB.

AWS
전문가
Paul_L
답변함 2년 전
  • Thanks for the reply. I already have a WAF attached to my CloudFront distribution. I believe that with the WAF this is not an applicable solution as the path I want to redirect to both destinations is the same, both the Target Group of the ALB and the URL must receive the same request.

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

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

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

관련 콘텐츠