serverless/lib/plugins/aws/package/lib/iam-role-lambda-execution-template.json
Mariusz Nowak 4944f471b1
Prettify
2019-06-26 12:43:01 +02:00

38 lines
799 B
JSON

{
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": ["lambda.amazonaws.com"]
},
"Action": ["sts:AssumeRole"]
}
]
},
"Policies": [
{
"PolicyName": "[TO BE REPLACED]",
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["logs:CreateLogStream"],
"Resource": []
},
{
"Effect": "Allow",
"Action": ["logs:PutLogEvents"],
"Resource": []
}
]
}
}
]
}
}