serverless/lib/plugins/aws/deploy/compile/functions/iam-policy-lambda-execution-template.json
Erik Erikson b8134cb15e Create & Ref CloudWatch LogGroup
Remove the create log group permissions
Add CloudWatch LogGroup to the CFT
Reference the co-created CloudWatch LogGroup as one of the resources for the IamPolicyLambdaExecution's logging statement
2016-09-15 11:29:21 -07:00

36 lines
660 B
JSON

{
"IamPolicyLambdaExecution": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyName": {
"Fn:Join": [
"-",
[
"${opt:stage}",
"${self:service}",
"lambda"
]
]
},
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": []
}
]
},
"Roles": [
{
"Ref": "IamRoleLambdaExecution"
}
]
}
}
}