File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,32 @@ We build, release and distribute packaged Lambda Powertools layers for each regi
131131
132132 ```
133133
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+
134160??? note "Layer ARN per region"
135161
136162 !!! tip "Click to copy to clipboard"
You can’t perform that action at this time.
0 commit comments