0

Is it possible to make a request from Lambda@Edge by origin response event?

User         L@E        Origin-1     Origin-2
 |            |            |            |
 |----GET---->|            |            |
 |            |----GET---->|            |
 |            |<---503-----|            |
 |            |            |            |
 |            |-----------------GET---->|
 |            |<----------------200-----|
 |<---200-----|            |            |
 |            |            |            |

If Lambda@Edge get response except 200 OK from Origin-1

Can Lambda@Edge make request to Origin-2?

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
1pacific
  • 21
  • 1
  • 3
  • [Origin Failover](https://aws.amazon.com/about-aws/whats-new/2018/11/amazon-cloudfront-announces-support-for-origin-failover) allows the behavior you describe, without L@E. Will that do what you want? – Michael - sqlbot Jun 27 '20 at 01:39
  • Sorry late. Thank you for your information. I'll check this function. – 1pacific Jun 29 '20 at 21:45

0 Answers0