lambda:CreateEventSourceMapping is a Write access-level action in the lambda service. Grants permission to create a mapping between an event source and an AWS Lambda function
This action does not support resource-level permissions; use "Resource": "*" in your policy.
Keys you can use in the Condition block of a policy that grants lambda:CreateEventSourceMapping.
Filters access by the tags that are passed in the request
Filters access by the tag keys that are passed in the request
Filters access by the ARN of an AWS Lambda function
A minimal policy that allows lambda:CreateEventSourceMapping. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowLambdaCreateEventSourceMapping",
"Effect": "Allow",
"Action": "lambda:CreateEventSourceMapping",
"Resource": "*"
}
]
}