I want to be able to read a cookie from my browser request in an aws lambda. I have found this https://aws.amazon.com/blogs/compute/simply-serverless-using-aws-lambda-to-expose-custom-cookies-with-api-gateway/ which seems to work.
However, this is not very useful in development in a aws-sam-cli application. I'm not sure how I would set this up using the SAM template format using a local server that is started with sam local start-api
.
I've read through the template documentation, however I haven't found it yet. Any help would be appreciated.