I’m pretty new to lambda and Serverless (and python) so please bear with me…
I’m trying to write a GET function that is passed an id, ans uses that id to look up a redirect URI from a map.
The map is built from a bundled JSON file.
If a redirect uri is found for that code, it returns a 302, and the location of the url.
If no uri is found for that id, it returns a 404.
I have found some posts that explain how to do this in lambda from the AWS Console, but I cannot figure out what my serverless.yml file needs to look like for the API part of this. If anyone’s got an example of something like this, and can share it, I’d be most appreciative.