From c775d0c5b7c32dcec86cebedf0adc9e8e4544b6f Mon Sep 17 00:00:00 2001 From: Hidetaka Okamoto Date: Sun, 17 May 2020 01:52:54 +0900 Subject: [PATCH] feat: add a AWS:Logs:LogGroup Resource in cfn-deployer template --- .../deploy-delegates/cfn-deployer/assets/basic-lambda.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/builtins/deploy-delegates/cfn-deployer/assets/basic-lambda.yaml b/lib/builtins/deploy-delegates/cfn-deployer/assets/basic-lambda.yaml index 2c90eabd..5d118cb7 100644 --- a/lib/builtins/deploy-delegates/cfn-deployer/assets/basic-lambda.yaml +++ b/lib/builtins/deploy-delegates/cfn-deployer/assets/basic-lambda.yaml @@ -54,6 +54,11 @@ Resources: FunctionName: !GetAtt AlexaSkillFunction.Arn Principal: alexa-appkit.amazon.com EventSourceToken: !Ref SkillId + AlexaSkillFunctionLogGroup: + Type: AWS::Logs::LogGroup + Properties: + LogGroupName: !Sub /aws/lambda/${AlexaSkillFunction} + RetentionInDays: 14 Outputs: SkillEndpoint: Description: LambdaARN for the regional endpoint