Skip to content

Commit f024963

Browse files
authored
Fix layer example config (aws-powertools#350)
1 parent 590fa3c commit f024963

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/index.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If using SAM, you can include this SAR App as part of your shared Layers stack,
4949

5050
=== "template.yml"
5151

52-
```yaml hl_lines="5-6 12-14"
52+
```yaml hl_lines="5-6 12-13"
5353
AwsLambdaPowertoolsPythonLayer:
5454
Type: AWS::Serverless::Application
5555
Properties:
@@ -60,10 +60,9 @@ AwsLambdaPowertoolsPythonLayer:
6060
MyLambdaFunction:
6161
Type: AWS::Serverless::Function
6262
Properties:
63-
Location:
64-
Layers:
65-
# fetch Layer ARN from SAR App stack output
66-
- !GetAtt AwsLambdaPowertoolsPythonLayer.Outputs.LayerVersionArn
63+
Layers:
64+
# fetch Layer ARN from SAR App stack output
65+
- !GetAtt AwsLambdaPowertoolsPythonLayer.Outputs.LayerVersionArn
6766
```
6867

6968
??? tip "Example of least-privileged IAM permissions to deploy Layer"

0 commit comments

Comments
 (0)