Use Case

The use case is pretty explicit, every request you need to do a redirect.

I needed to do this because of a Gateway restriction where the root of a {proxy+} resource can’t be include in the {proxy+} itself

What I mean here is if you have the following structure

/docs won’t be included in the lambda targeted by the proxy. My suggestion is to simply create a 301 from /docs to /docs/index.html.

#terraform #aws-lambda #aws-api-gateway #http-redirect-301 #aws

How to easily create a HTTP 301 redirection with AWS API Gateway
1.60 GEEK