Reputation: 3467
I don't use AWS a lot, but I wrote one small lambda function and I want to give someone full access. Everytime I try to add the user the IAM permissions it never seems to give enough access or show even the correct function. I feel like this should be a simple task. One function, with logs and SNS. Can someone help with the JSON permission needed to access this specific resource?
Upvotes: 0
Views: 687
Reputation: 930
A Lambda function is triggered by a so-called event source. An event source is an AWS service so you need to give the lambda function enough access to that service.
Two ways I recommend you to do it:
Go to the AWS Lambda page and create one:
Use the blueprint microservice-http-endpoint
lambda function as sample and click configure.
It will create a new permission for you as you will see in that config page
This one is just a test and should not be used in production: Create a new Role and name it test, and attatch it this policies:
and either attach that role to your existing lambda or create a new one with it.
That should help :)
Upvotes: 0