Skip to content

Commit e94a9b5

Browse files
Merge branch 'develop' into feat/2348
2 parents 5f64ccb + 9e0f15c commit e94a9b5

File tree

118 files changed

+2165
-968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+2165
-968
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ body:
4848
- type: input
4949
id: version
5050
attributes:
51-
label: AWS Lambda Powertools for Python version
51+
label: Powertools for AWS Lambda (Python) version
5252
placeholder: "latest, 1.25.6"
5353
value: latest
5454
validations:
@@ -58,10 +58,10 @@ body:
5858
attributes:
5959
label: AWS Lambda function runtime
6060
options:
61-
- 3.7
62-
- 3.8
63-
- 3.9
64-
- 3.10
61+
- "3.7"
62+
- "3.8"
63+
- "3.9"
64+
- "3.10"
6565
validations:
6666
required: true
6767
- type: dropdown

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Feature request
2-
description: Suggest an idea for Lambda Powertools
2+
description: Suggest an idea for Powertools for AWS Lambda (Python)
33
title: "Feature request: TITLE"
44
labels: ["feature-request", "triage"]
55
body:
66
- type: markdown
77
attributes:
88
value: |
9-
Thank you for taking the time to suggest an idea to the Lambda Powertools project.
9+
Thank you for taking the time to suggest an idea to the Powertools for AWS Lambda (Python) project.
1010
1111
*Future readers*: Please react with 👍 and your use case to help us understand customer demand.
1212
- type: textarea
@@ -36,9 +36,9 @@ body:
3636
attributes:
3737
label: Acknowledgment
3838
options:
39-
- label: This feature request meets [Lambda Powertools Tenets](https://awslabs.github.io/aws-lambda-powertools-python/latest/#tenets)
39+
- label: This feature request meets [Powertools for AWS Lambda (Python) Tenets](https://awslabs.github.io/aws-lambda-powertools-python/latest/#tenets)
4040
required: true
41-
- label: Should this be considered in other Lambda Powertools languages? i.e. [Java](https://github.com/awslabs/aws-lambda-powertools-java/), [TypeScript](https://github.com/awslabs/aws-lambda-powertools-typescript/), and [.NET](https://github.com/awslabs/aws-lambda-powertools-dotnet/)
41+
- label: Should this be considered in other Powertools for AWS Lambda languages? i.e. [Java](https://github.com/awslabs/aws-lambda-powertools-java/), [TypeScript](https://github.com/awslabs/aws-lambda-powertools-typescript/), and [.NET](https://github.com/awslabs/aws-lambda-powertools-dotnet/)
4242
required: false
4343
- type: markdown
4444
attributes:

.github/ISSUE_TEMPLATE/maintenance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ body:
5353
attributes:
5454
label: Acknowledgment
5555
options:
56-
- label: This request meets [Lambda Powertools Tenets](https://awslabs.github.io/aws-lambda-powertools-python/latest/#tenets)
56+
- label: This request meets [Powertools for AWS Lambda (Python) Tenets](https://awslabs.github.io/aws-lambda-powertools-python/latest/#tenets)
5757
required: true
58-
- label: Should this be considered in other Lambda Powertools languages? i.e. [Java](https://github.com/awslabs/aws-lambda-powertools-java/), [TypeScript](https://github.com/awslabs/aws-lambda-powertools-typescript/), and [.NET](https://github.com/awslabs/aws-lambda-powertools-dotnet/)
58+
- label: Should this be considered in other Powertools for AWS Lambda languages? i.e. [Java](https://github.com/awslabs/aws-lambda-powertools-java/), [TypeScript](https://github.com/awslabs/aws-lambda-powertools-typescript/), and [.NET](https://github.com/awslabs/aws-lambda-powertools-dotnet/)
5959
required: false
6060
- type: markdown
6161
attributes:

.github/ISSUE_TEMPLATE/rfc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body:
1515
- type: dropdown
1616
id: area
1717
attributes:
18-
label: Which AWS Lambda Powertools utility does this relate to?
18+
label: Which Powertools for AWS Lambda (Python) utility does this relate to?
1919
options:
2020
- Tracer
2121
- Logger
@@ -91,9 +91,9 @@ body:
9191
attributes:
9292
label: Acknowledgment
9393
options:
94-
- label: This feature request meets [Lambda Powertools Tenets](https://awslabs.github.io/aws-lambda-powertools-python/latest/#tenets)
94+
- label: This feature request meets [Powertools for AWS Lambda (Python) Tenets](https://awslabs.github.io/aws-lambda-powertools-python/latest/#tenets)
9595
required: true
96-
- label: Should this be considered in other Lambda Powertools languages? i.e. [Java](https://github.com/awslabs/aws-lambda-powertools-java/), [TypeScript](https://github.com/awslabs/aws-lambda-powertools-typescript/), and [.NET](https://github.com/awslabs/aws-lambda-powertools-dotnet/)
96+
- label: Should this be considered in other Powertools for AWS Lambda languages? i.e. [Java](https://github.com/awslabs/aws-lambda-powertools-java/), [TypeScript](https://github.com/awslabs/aws-lambda-powertools-typescript/), and [.NET](https://github.com/awslabs/aws-lambda-powertools-dotnet/)
9797
required: false
9898
- type: markdown
9999
attributes:

.github/ISSUE_TEMPLATE/share_your_work.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: I Made This (showcase your work)
2-
description: Share what you did with Powertools 💞💞. Blog post, workshops, presentation, sample apps, etc.
2+
description: Share what you did with Powertools for AWS Lambda (Python) 💞💞. Blog post, workshops, presentation, sample apps, etc.
33
title: "[I Made This]: <TITLE>"
44
labels: ["community-content"]
55
body:
@@ -13,7 +13,7 @@ body:
1313
description: |
1414
Please share the original link to your material.
1515
16-
*Note: Short links will be expanded when added to Powertools documentation*
16+
*Note: Short links will be expanded when added to Powertools for AWS Lambda (Python) documentation*
1717
validations:
1818
required: true
1919
- type: textarea
@@ -44,13 +44,13 @@ body:
4444
description: |
4545
Any notes you might want to share with us related to this material.
4646
47-
*Note: These notes are explicitly to Powertools maintainers. It will not be added to the community resources page.*
47+
*Note: These notes are explicitly to Powertools for AWS Lambda (Python) maintainers. It will not be added to the community resources page.*
4848
validations:
4949
required: false
5050
- type: checkboxes
5151
id: acknowledgment
5252
attributes:
5353
label: Acknowledgment
5454
options:
55-
- label: I understand this content may be removed from Powertools documentation if it doesn't conform with the [Code of Conduct](https://aws.github.io/code-of-conduct)
55+
- label: I understand this content may be removed from Powertools for AWS Lambda (Python) documentation if it doesn't conform with the [Code of Conduct](https://aws.github.io/code-of-conduct)
5656
required: true

.github/ISSUE_TEMPLATE/static_typing.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ body:
2525
attributes:
2626
label: AWS Lambda function runtime
2727
options:
28-
- 3.7
29-
- 3.8
30-
- 3.9
31-
- 3.10
28+
- "3.7"
29+
- "3.8"
30+
- "3.9"
31+
- "3.10"
3232
validations:
3333
required: true
3434
- type: input
3535
id: version
3636
attributes:
37-
label: AWS Lambda Powertools for Python version
37+
label: Powertools for AWS Lambda (Python) version
3838
placeholder: "latest, 1.25.6"
3939
value: latest
4040
validations:

.github/ISSUE_TEMPLATE/support_powertools.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: Support Lambda Powertools (become a reference)
2-
description: Add your organization's name or logo to the Lambda Powertools documentation
3-
title: "[Support Lambda Powertools]: <your organization name>"
1+
name: Support Powertools for AWS Lambda (Python) (become a reference)
2+
description: Add your organization's name or logo to the Powertools for AWS Lambda (Python) documentation
3+
title: "[Support Powertools for AWS Lambda (Python)]: <your organization name>"
44
labels: ["customer-reference"]
55
body:
66
- type: markdown
@@ -42,13 +42,13 @@ body:
4242
id: use_case
4343
attributes:
4444
label: (Optional) Use case
45-
description: How are you using Lambda Powertools today? *features, etc.*
45+
description: How are you using Powertools for AWS Lambda (Python) today? *features, etc.*
4646
validations:
4747
required: false
4848
- type: checkboxes
4949
id: other_languages
5050
attributes:
51-
label: Also using other Lambda Powertools languages?
51+
label: Also using other Powertools for AWS Lambda languages?
5252
options:
5353
- label: Java
5454
required: false
@@ -59,6 +59,6 @@ body:
5959
- type: markdown
6060
attributes:
6161
value: |
62-
*By raising a Support Lambda Powertools issue, you are granting AWS permission to use your company's name (and/or logo) for the limited purpose described here. You are also confirming that you have authority to grant such permission.*
62+
*By raising a Support Powertools for AWS Lambda (Python) issue, you are granting AWS permission to use your company's name (and/or logo) for the limited purpose described here. You are also confirming that you have authority to grant such permission.*
6363
6464
*You can opt-out at any time by commenting or reopening this issue.*

.github/ISSUE_TEMPLATE/tech_debt.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ body:
5050
attributes:
5151
label: Acknowledgment
5252
options:
53-
- label: This request meets [Lambda Powertools Tenets](https://awslabs.github.io/aws-lambda-powertools-python/latest/#tenets)
53+
- label: This request meets [Powertools for AWS Lambda (Python) Tenets](https://awslabs.github.io/aws-lambda-powertools-python/latest/#tenets)
5454
required: true
55-
- label: Should this be considered in other Lambda Powertools languages? i.e. [Java](https://github.com/awslabs/aws-lambda-powertools-java/), [TypeScript](https://github.com/awslabs/aws-lambda-powertools-typescript/), and [.NET](https://github.com/awslabs/aws-lambda-powertools-dotnet/)
55+
- label: Should this be considered in other Powertools for AWS Lambda languages? i.e. [Java](https://github.com/awslabs/aws-lambda-powertools-java/), [TypeScript](https://github.com/awslabs/aws-lambda-powertools-typescript/), and [.NET](https://github.com/awslabs/aws-lambda-powertools-dotnet/)
5656
required: false
5757
- type: markdown
5858
attributes:

.github/actions/create-pr/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: "Create a PR and a temporary branch, close duplicates"
33

44
# PROCESS
55
#
6-
# 1. Setup git client using Powertools bot username
6+
# 1. Setup git client using Powertools for AWS Lambda (Python) bot username
77
# 2. Pushes staged files to a temporary branch
88
# 3. Creates a PR from temporary branch against a target branch (typically trunk: develop, main, etc.)
99
# 4. Searches for duplicate PRs with the same title
@@ -63,7 +63,7 @@ runs:
6363
- id: setup-git
6464
name: Git client setup and refresh tip
6565
run: |
66-
git config user.name "Powertools bot"
66+
git config user.name "Powertools for AWS Lambda (Python) bot"
6767
git config user.email "[email protected]"
6868
git config pull.rebase true
6969
git config remote.origin.url >&-
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Download artifact
2+
description: Wrapper around GitHub's official action, with additional extraction before download
3+
4+
# PROCESS
5+
#
6+
# 1. Downloads artifact using actions/download-artifact action
7+
# 2. Extracts and overwrites tarball previously uploaded
8+
# 3. Remove archive after extraction
9+
10+
# NOTES
11+
#
12+
# Upload-artifact and download-artifact takes ~2m40s to upload 8MB
13+
# so this is custom action cuts down the entire operation to 1s
14+
# by uploading/extracting a tarball while relying on the official upload-artifact/download-artifact actions
15+
#
16+
17+
# USAGE
18+
#
19+
# NOTE: Meant to be used with ./.github/actions/upload-artifact
20+
#
21+
# - name: Restore sealed source code
22+
# uses: ./.github/actions/download-artifact
23+
# with:
24+
# name: ${{ needs.seal.outputs.INTEGRITY_HASH }}
25+
# path: .
26+
27+
# https://github.com/actions/download-artifact/blob/main/action.yml
28+
inputs:
29+
name:
30+
description: Artifact name
31+
required: true
32+
path:
33+
description: Destination path. By default, it will download to the current working directory.
34+
required: false
35+
default: .
36+
37+
runs:
38+
using: composite
39+
steps:
40+
- name: Download artifacts
41+
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
42+
with:
43+
name: ${{ inputs.name }}
44+
path: ${{ inputs.path }}
45+
46+
- name: Extract artifacts
47+
run: tar -xvf "${ARCHIVE}"
48+
env:
49+
ARCHIVE: ${{ inputs.name }}.tar
50+
shell: bash
51+
working-directory: ${{ inputs.path }}
52+
53+
- name: Remove archive
54+
run: rm -f "${ARCHIVE}"
55+
env:
56+
ARCHIVE: ${{ inputs.name }}.tar
57+
shell: bash
58+
working-directory: ${{ inputs.path }}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Upload artifact
2+
description: Wrapper around GitHub's official action, with additional archiving before upload
3+
4+
# PROCESS
5+
#
6+
# 1. Creates tarball excluding .git files
7+
# 2. Uploads tarball using actions/upload-artifact action, fail CI job if no file is found
8+
# 3. Remove archive after uploading it.
9+
10+
# NOTES
11+
#
12+
# Upload-artifact and download-artifact takes ~2m40s to upload 8MB
13+
# so this is custom action cuts down the entire operation to 1s
14+
# by uploading/extracting a tarball while relying on the official upload-artifact/download-artifact actions
15+
#
16+
17+
# USAGE
18+
#
19+
# NOTE: Meant to be used with ./.github/actions/download-artifact
20+
#
21+
# - name: Upload sealed source code
22+
# uses: ./.github/actions/upload-artifact
23+
# with:
24+
# name: ${{ steps.integrity.outputs.INTEGRITY_HASH }}
25+
# path: .
26+
27+
# https://github.com/actions/upload-artifact/blob/main/action.yml
28+
inputs:
29+
name:
30+
description: Artifact name
31+
required: true
32+
path:
33+
description: >
34+
A file, directory or wildcard pattern that describes what to upload.
35+
36+
You can pass multiple paths separated by space (e.g., dir1 dir2 file.txt).
37+
38+
Paths and wildcard patterns must be tar command compatible.
39+
required: true
40+
retention-days:
41+
description: >
42+
Artifact retention in days. By default 1 day, max of 90 days, and 0 honours default repo retention.
43+
44+
You can change max days in the repository settings.
45+
required: false
46+
default: "1"
47+
if-no-files-found:
48+
description: >
49+
Action to perform if no files are found: warn, error, ignore. By default, it fails fast with 'error'.
50+
51+
Options:
52+
warn: Output a warning but do not fail the action
53+
error: Fail the action with an error message
54+
ignore: Do not output any warnings or errors, the action does not fail
55+
required: false
56+
default: error
57+
58+
runs:
59+
using: composite
60+
steps:
61+
- name: Archive artifacts
62+
run: |
63+
tar --exclude-vcs \
64+
-cvf "${ARCHIVE}" "${PATH_TO_ARCHIVE}"
65+
env:
66+
ARCHIVE: ${{ inputs.name }}.tar
67+
PATH_TO_ARCHIVE: ${{ inputs.path }}
68+
shell: bash
69+
70+
- name: Upload artifacts
71+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
72+
with:
73+
if-no-files-found: ${{ inputs.if-no-files-found }}
74+
name: ${{ inputs.name }}
75+
path: ${{ inputs.name }}.tar
76+
retention-days: ${{ inputs.retention-days }}
77+
78+
- name: Remove archive
79+
run: rm -f "${ARCHIVE}"
80+
env:
81+
ARCHIVE: ${{ inputs.name }}.tar
82+
shell: bash

.github/boring-cyborg.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ labelPRBasedOnFilePath:
9797
firstPRWelcomeComment: >
9898
Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need.
9999
100-
In the meantime, check out the #python channel on our AWS Lambda Powertools Discord: [Invite link](https://discord.gg/B8zZKbbyET)
100+
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: [Invite link](https://discord.gg/B8zZKbbyET)
101101
102102
# Comment to be posted to congratulate user on their first merged PR
103103
firstPRMergeComment: >
@@ -107,7 +107,7 @@ firstPRMergeComment: >
107107
firstIssueWelcomeComment: >
108108
Thanks for opening your first issue here! We'll come back to you as soon as we can.
109109
110-
In the meantime, check out the #python channel on our AWS Lambda Powertools Discord: [Invite link](https://discord.gg/B8zZKbbyET)
110+
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: [Invite link](https://discord.gg/B8zZKbbyET)
111111
112112
###### IssueLink Adder #################################################################################################
113113
# Insert Issue (Jira/Github etc) link in PR description based on the Issue ID in PR title.

.github/workflows/dispatch_analytics.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ on:
44
workflow_dispatch:
55

66
schedule:
7-
- cron: '0 * * * *'
7+
- cron: "0 * * * *"
88

99
permissions:
1010
id-token: write
1111
actions: read
1212
checks: read
13-
contents: read
13+
contents: write
1414
deployments: read
1515
issues: read
1616
discussions: read

.github/workflows/on_push_docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@ on:
1010
- "examples/**"
1111
- "CHANGELOG.md"
1212

13+
permissions:
14+
id-token: write
15+
1316
jobs:
1417
release-docs:
1518
permissions:
1619
contents: write
1720
pages: write
21+
id-token: write
22+
secrets: inherit
1823
uses: ./.github/workflows/reusable_publish_docs.yml
1924
with:
2025
version: develop
21-
alias: stage
26+
alias: stage

0 commit comments

Comments
 (0)