Skip to content

Commit b663dd8

Browse files
committed
add permissions to template
1 parent cc21266 commit b663dd8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

template.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,11 @@ Resources:
4242
FIRETAIL_APP_TOKEN:
4343
Ref: FTAPPKEY
4444
SEMANTIC_VERSION:
45-
Ref: SemanticVersion
45+
Ref: SemanticVersion
46+
LambdaInvokePermission:
47+
Type: "AWS::Lambda::Permission"
48+
Properties:
49+
FunctionName: !GetAtt FireTailAppSyncLogger.Arn
50+
Action: "lambda:InvokeFunction"
51+
Principal: "logs.amazonaws.com"
52+
SourceArn: !Sub "arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/appsync/apis/*/*"

0 commit comments

Comments
 (0)