@@ -131,7 +131,33 @@ We build, release and distribute packaged Lambda Powertools layers for each regi
131
131
132
132
```
133
133
134
- ??? note "Latest Lambda Layers ARN per region"
134
+ === "Amplify"
135
+
136
+ ```zsh
137
+ # Create a new one with the layer
138
+ ❯ amplify add function
139
+ ? Select which capability you want to add: Lambda function (serverless function)
140
+ ? Provide an AWS Lambda function name: <NAME-OF-FUNCTION>
141
+ ? Choose the runtime that you want to use: Python
142
+ ? Do you want to configure advanced settings? Yes
143
+ ...
144
+ ? Do you want to enable Lambda layers for this function? Yes
145
+ ? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:3
146
+ ❯ amplify push -y
147
+
148
+
149
+ # Updating an existing function and add the layer
150
+ ❯ amplify update function
151
+ ? Select the Lambda function you want to update test2
152
+ General information
153
+ - Name: <NAME-OF-FUNCTION>
154
+ ? Which setting do you want to update? Lambda layers configuration
155
+ ? Do you want to enable Lambda layers for this function? Yes
156
+ ? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:3
157
+ ? Do you want to edit the local lambda function now? No
158
+ ```
159
+
160
+ ??? note "Layer ARN per region"
135
161
136
162
!!! tip "Click to copy to clipboard"
137
163
@@ -196,7 +222,7 @@ If using SAM, you can include this SAR App as part of your shared Layers stack,
196
222
197
223
resources:
198
224
Transform: AWS::Serverless-2016-10-31
199
- Resources:
225
+ Resources:****
200
226
AwsLambdaPowertoolsPythonLayer:
201
227
Type: AWS::Serverless::Application
202
228
Properties:
0 commit comments