From 64cd250b06145b46f797426338341d9c0c9b69aa Mon Sep 17 00:00:00 2001 From: Alessandro Volpicella Date: Fri, 8 Oct 2021 18:37:16 +0200 Subject: [PATCH] Section on adding public arn to amplify --- docs/index.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/index.md b/docs/index.md index 7f58de4fe8a..2bd9053a183 100644 --- a/docs/index.md +++ b/docs/index.md @@ -131,6 +131,32 @@ We build, release and distribute packaged Lambda Powertools layers for each regi ``` +=== "Amplify" + + ```zsh + # Create a new one with the layer + ❯ amplify add function + ? Select which capability you want to add: Lambda function (serverless function) + ? Provide an AWS Lambda function name: + ? Choose the runtime that you want to use: Python + ? Do you want to configure advanced settings? Yes + ... + ? Do you want to enable Lambda layers for this function? Yes + ? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:3 + ❯ amplify push -y + + + # Updating an existing function and add the layer + ❯ amplify update function + ? Select the Lambda function you want to update test2 + General information + - Name: + ? Which setting do you want to update? Lambda layers configuration + ? Do you want to enable Lambda layers for this function? Yes + ? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:3 + ? Do you want to edit the local lambda function now? No + ``` + ??? note "Layer ARN per region" !!! tip "Click to copy to clipboard"