Skip to content

Commit 0aa0a28

Browse files
committed
invoke policy
1 parent a7a73cf commit 0aa0a28

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

template.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,16 @@ Resources:
101101
Resource:
102102
- 'arn:aws:dynamodb:*:*:table/scorekeep-*'
103103
- 'arn:aws:sns:*:*:scorekeep-*'
104-
- 'arn:aws:lambda:*:*:function/random-name'
104+
- PolicyName: invoke
105+
PolicyDocument:
106+
Version: 2012-10-17
107+
Statement:
108+
- Sid: InvokeFunction
109+
Action:
110+
- 'lambda:InvokeFunction'
111+
Effect: Allow
112+
Resource:
113+
- !GetAtt function.Arn
105114
- PolicyName: beanstalk
106115
PolicyDocument:
107116
Version: 2012-10-17

0 commit comments

Comments
 (0)