mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
38 lines
822 B
JSON
38 lines
822 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", "logs:CreateLogGroup"],
|
|
"Resource": []
|
|
},
|
|
{
|
|
"Effect": "Allow",
|
|
"Action": ["logs:PutLogEvents"],
|
|
"Resource": []
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|