Foreword: I'm not asking for configuration help. My use case is covered and working fine. This is a theoretical question.
On AWS there is a policy called AWSLambdaExecute
which is defined as follows:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [ "logs:*" ],
"Resource": "arn:aws:logs:*:*:*"
},
{
"Effect": "Allow",
"Action": [ "s3:GetObject", "s3:PutObject" ],
"Resource": "arn:aws:s3:::*"
}
]
}
This definition says to me:
- Full access to all logs
- Can download / upload to S3.
What is the reasoning behind this? Why are they talking about S3? (My particular lambda invocation has nothing to do with S3.) Do we know about any detailed documentation on predefined policies other than the one-liner descriptions of each?