I’m starting a new project and we are using APIG and AWS_IAM Authorizer.
I was thinking it would be nice to be able to keep the security information (which roles can access which endpoint) in the config together with the other config for that endpoint.
I can’t find any plugins for this. Was wondering how people maintain that information now? And thoughts on a plugin that would do the above?
Thanks, I didn’t know about the plugins list!
That plugin isn’t quite what I’m after but will be a good starting point for writing one.
I want to specify application roles for each function from say [admin, power-user, user]
Then have the plugin generate an IAM role for each application role allowing execute-api:Invoke for each path of the function that specified that role.
So the below would be generated for the admin role if admin was specified on the POST hello function
You need manually care with a monolith (?) lambda functions to generate the policy cache with IAM policy. The policy cache has size limits (don’t remember, about 200k or 400k ??? ), so if you need manage too many endpoints with different methods, you have to split them properly.
In my case, I need assign different methods for different endpoints, such as: