Skip to content

Commit

Permalink
feat(*): Updating iam firehose policy
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cottone committed Jul 29, 2018
1 parent 0ef0852 commit c6f706a
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion templates/iam-firehose.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"Type": "AWS::IAM::Role",
"DependsOn": [
"ServerlessEsLogsS3",
"ServerlessEsLogsLogGroup"
"ServerlessEsLogsLogGroup",
"EsLogsProcesserLambdaFunction"
],
"Properties": {
"AssumeRolePolicyDocument": {
Expand Down Expand Up @@ -113,6 +114,34 @@
}
]
}
},
{
"PolicyName": {
"Fn::Join": [
"-",
[]
]
},
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"lambda:InvokeFunction",
"lambda:GetFunctionConfiguration"
],
"Resource": [
{
"Fn::GetAtt": [
"ServerlessEsLogsLogGroup",
"Arn"
]
}
]
}
]
}
}
],
"Path": "/",
Expand Down

0 comments on commit c6f706a

Please sign in to comment.