Would be helpful to have a gruntsam example with custom authorization

guidance
gruntsam
lambda

#1

Im using the gruntsam module to create the copious amount of terraform glue needed to deploy an AWS Gateway API. It works great.

We’re also using a custom Authorizer function to check calls to the API have the correct Auth0 headers. I’ve created a api_gateway_authoriser module to create the authorizer function and set up the IAM roles. The only thing I can’t work out how to do is set up the required CORS settings using the gruntsam module.

It would be great to have an example. I suspect a grunt works api_gateway_authoriser module would be handy for other people too :slight_smile:.

Has anyone done this?

Thanks
Andy


#2

@matt Could you share any guidance here?