From 598176b3c09a76b185a423db9c61965800518ce3 Mon Sep 17 00:00:00 2001 From: Brock Reece Date: Thu, 18 Mar 2021 17:06:48 +0000 Subject: [PATCH] Fix layer example config Remove `Location` key from the `MyLambdaFunction` resource in the example template.yml --- docs/index.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/index.md b/docs/index.md index cddf3182695..1f347b017e1 100644 --- a/docs/index.md +++ b/docs/index.md @@ -49,7 +49,7 @@ If using SAM, you can include this SAR App as part of your shared Layers stack, === "template.yml" -```yaml hl_lines="5-6 12-14" +```yaml hl_lines="5-6 12-13" AwsLambdaPowertoolsPythonLayer: Type: AWS::Serverless::Application Properties: @@ -60,10 +60,9 @@ AwsLambdaPowertoolsPythonLayer: MyLambdaFunction: Type: AWS::Serverless::Function Properties: - Location: - Layers: - # fetch Layer ARN from SAR App stack output - - !GetAtt AwsLambdaPowertoolsPythonLayer.Outputs.LayerVersionArn + Layers: + # fetch Layer ARN from SAR App stack output + - !GetAtt AwsLambdaPowertoolsPythonLayer.Outputs.LayerVersionArn ``` ??? tip "Example of least-privileged IAM permissions to deploy Layer"