Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…tools-python into develop

* 'develop' of https://github.com/awslabs/aws-lambda-powertools-python:
  chore(deps-dev): bump mkdocs-material from 7.3.2 to 7.3.3 (aws-powertools#758)
  chore(deps-dev): bump flake8-comprehensions from 3.6.1 to 3.7.0 (aws-powertools#759)
  chore(deps): bump boto3 from 1.18.58 to 1.18.59 (aws-powertools#760)
  chore(deps-dev): bump coverage from 6.0 to 6.0.1 (aws-powertools#751)
  chore(deps): bump boto3 from 1.18.56 to 1.18.58 (aws-powertools#755)
  docs: add amplify-cli instructions for public layer (aws-powertools#754)

Signed-off-by: heitorlessa <[email protected]>
  • Loading branch information
heitorlessa committed Oct 12, 2021
2 parents 3512ca0 + dce7432 commit f71461c
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 55 deletions.
30 changes: 28 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,33 @@ We build, release and distribute packaged Lambda Powertools layers for each regi

```

??? note "Latest Lambda Layers ARN per region"
=== "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: <NAME-OF-FUNCTION>
? 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: <NAME-OF-FUNCTION>
? 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"

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

resources:
Transform: AWS::Serverless-2016-10-31
Resources:
Resources:****
AwsLambdaPowertoolsPythonLayer:
Type: AWS::Serverless::Application
Properties:
Expand Down
100 changes: 49 additions & 51 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ black = "^20.8b1"
flake8 = "^3.9.0"
flake8-black = "^0.2.3"
flake8-builtins = "^1.5.3"
flake8-comprehensions = "^3.6.1"
flake8-comprehensions = "^3.7.0"
flake8-debugger = "^4.0.0"
flake8-fixme = "^1.1.1"
flake8-isort = "^4.0.0"
Expand All @@ -50,7 +50,7 @@ radon = "^5.1.0"
xenon = "^0.8.0"
flake8-eradicate = "^1.1.0"
flake8-bugbear = "^21.9.2"
mkdocs-material = "^7.3.2"
mkdocs-material = "^7.3.3"
mkdocs-git-revision-date-plugin = "^0.3.1"
mike = "^0.6.0"
mypy = "^0.910"
Expand Down

0 comments on commit f71461c

Please sign in to comment.