Skip to content

Commit f71461c

Browse files
committed
* 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: chore(deps-dev): bump mkdocs-material from 7.3.2 to 7.3.3 (#758) chore(deps-dev): bump flake8-comprehensions from 3.6.1 to 3.7.0 (#759) chore(deps): bump boto3 from 1.18.58 to 1.18.59 (#760) chore(deps-dev): bump coverage from 6.0 to 6.0.1 (#751) chore(deps): bump boto3 from 1.18.56 to 1.18.58 (#755) docs: add amplify-cli instructions for public layer (#754) Signed-off-by: heitorlessa <[email protected]>
2 parents 3512ca0 + dce7432 commit f71461c

File tree

3 files changed

+79
-55
lines changed

3 files changed

+79
-55
lines changed

docs/index.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,33 @@ We build, release and distribute packaged Lambda Powertools layers for each regi
131131

132132
```
133133

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"
135161

136162
!!! tip "Click to copy to clipboard"
137163

@@ -196,7 +222,7 @@ If using SAM, you can include this SAR App as part of your shared Layers stack,
196222

197223
resources:
198224
Transform: AWS::Serverless-2016-10-31
199-
Resources:
225+
Resources:****
200226
AwsLambdaPowertoolsPythonLayer:
201227
Type: AWS::Serverless::Application
202228
Properties:

poetry.lock

Lines changed: 49 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ black = "^20.8b1"
3535
flake8 = "^3.9.0"
3636
flake8-black = "^0.2.3"
3737
flake8-builtins = "^1.5.3"
38-
flake8-comprehensions = "^3.6.1"
38+
flake8-comprehensions = "^3.7.0"
3939
flake8-debugger = "^4.0.0"
4040
flake8-fixme = "^1.1.1"
4141
flake8-isort = "^4.0.0"
@@ -50,7 +50,7 @@ radon = "^5.1.0"
5050
xenon = "^0.8.0"
5151
flake8-eradicate = "^1.1.0"
5252
flake8-bugbear = "^21.9.2"
53-
mkdocs-material = "^7.3.2"
53+
mkdocs-material = "^7.3.3"
5454
mkdocs-git-revision-date-plugin = "^0.3.1"
5555
mike = "^0.6.0"
5656
mypy = "^0.910"

0 commit comments

Comments
 (0)