I am creating AWS Lambda functions using the C++ SDK. I create these functions with the following role:
Role Document:
{
"permissionsBoundary": {},
"roleName": "my_role",
"policies": [
{
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "*"
}
]
},
"name": "AmazonS3FullAccess",
"id": "SOMEID",
"type": "managed",
"arn": "arn:aws:iam::aws:policy/AmazonS3FullAccess"
}
],
"trustedEntities": [
"lambda.amazonaws.com"
]
}
When it comes to permissions that's all I do. My lambda functions is still unable to access S3, though. Why is that?
Do I have to create a policy that lets the lambda function assume my_role?
my_roleis attached. However the permissions are not listed