Skip to content

Commit a13e190

Browse files
authored
Merge branch 'develop' into s3-event-notification-model
Signed-off-by: Alan Ip <theipster@users.noreply.github.com>
2 parents 72b127d + 907c80d commit a13e190

File tree

198 files changed

+7724
-2050
lines changed

Some content is hidden

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

198 files changed

+7724
-2050
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ exclude = docs, .eggs, setup.py, example, .aws-sam, .git, dist, *.md, *.yaml, ex
33
ignore = E203, E266, W503, BLK100, W291, I004
44
max-line-length = 120
55
max-complexity = 15
6+
; flake8-builtins isn't honouring inline ignore (A003)
67
per-file-ignores =
78
tests/e2e/utils/data_builder/__init__.py:F401
89
tests/e2e/utils/data_fetcher/__init__.py:F401
10+
aws_lambda_powertools/utilities/data_classes/s3_event.py:A003
911

1012
[isort]
1113
multi_line_output = 3

.github/dependabot.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,18 @@ updates:
2020
ignore:
2121
# 2022-04-23: Ignoring boto3 changes until we need to care about them.
2222
- dependency-name: "boto3"
23-
23+
24+
- package-ecosystem: "npm"
25+
directory: "/"
26+
schedule:
27+
interval: "daily"
28+
target-branch: "develop"
29+
commit-message:
30+
prefix: chore
31+
include: scope
32+
allow:
33+
# Allow updates for AWS CDK
34+
- dependency-name: "aws-cdk"
2435

2536
# - package-ecosystem: "pip"
2637
# directory: "/"

.github/workflows/auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- name: Dependabot metadata
1616
id: metadata
17-
uses: dependabot/fetch-metadata@v1.3.5
17+
uses: dependabot/fetch-metadata@v1.3.6
1818
with:
1919
github-token: "${{ secrets.GITHUB_TOKEN }}"
2020
- name: Enable auto-merge for mypy-boto3 stubs Dependabot PRs

.github/workflows/publish_v2_layer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
# NOTE: we need QEMU to build Layer against a different architecture (e.g., ARM)
6666
- name: Set up Docker Buildx
6767
id: builder
68-
uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # v2.0.0
68+
uses: docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2.5.0
6969
with:
7070
install: true
7171
driver: docker

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
update_release_draft:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: release-drafter/release-drafter@cfc5540ebc9d65a8731f02032e3d44db5e449fb6 # v5.20.1
13+
- uses: release-drafter/release-drafter@569eb7ee3a85817ab916c8f8ff03a5bd96c9c83e # v5.20.1
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
run: |
7474
RELEASE_VERSION="${RELEASE_TAG_VERSION:1}"
7575
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> "$GITHUB_ENV"
76-
echo "::set-output name=RELEASE_VERSION::${RELEASE_VERSION}"
76+
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> "$GITHUB_OUTPUT"
7777
- name: Install dependencies
7878
run: make dev
7979
- name: Run all tests, linting and baselines
@@ -92,12 +92,13 @@ jobs:
9292
- name: Build python package and wheel
9393
if: ${{ !inputs.skip_pypi }}
9494
run: poetry build
95-
- name: Upload to PyPi test
96-
if: ${{ !inputs.skip_pypi }}
97-
run: make release-test
98-
env:
99-
PYPI_USERNAME: __token__
100-
PYPI_TEST_TOKEN: ${{ secrets.PYPI_TEST_TOKEN }}
95+
# March 1st: PyPi test is under maintenance....
96+
# - name: Upload to PyPi test
97+
# if: ${{ !inputs.skip_pypi }}
98+
# run: make release-test
99+
# env:
100+
# PYPI_USERNAME: __token__
101+
# PYPI_TEST_TOKEN: ${{ secrets.PYPI_TEST_TOKEN }}
101102
- name: Upload to PyPi prod
102103
if: ${{ !inputs.skip_pypi }}
103104
run: make release-prod

.github/workflows/reusable_deploy_v2_layer_stack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- name: Install poetry
6969
run: pipx install poetry
7070
- name: aws credentials
71-
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838
71+
uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef
7272
with:
7373
aws-region: ${{ matrix.region }}
7474
role-to-assume: ${{ secrets.AWS_LAYERS_ROLE_ARN }}

.github/workflows/reusable_deploy_v2_sar.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ jobs:
5050
- name: Checkout
5151
uses: actions/checkout@v3
5252
- name: AWS credentials
53-
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838
53+
uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef
5454
with:
5555
aws-region: ${{ env.AWS_REGION }}
5656
role-to-assume: ${{ secrets.AWS_LAYERS_ROLE_ARN }}
5757
- name: AWS credentials SAR role
58-
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838
58+
uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef
5959
id: aws-credentials-sar-role
6060
with:
6161
aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }}

.github/workflows/reusable_export_pr_details.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ jobs:
7171
# otherwise the parent caller won't see them regardless on how outputs are set.
7272
- name: "Export Pull Request Number"
7373
id: prNumber
74-
run: echo ::set-output name=prNumber::$(jq -c '.number' ${FILENAME})
74+
run: echo "prNumber=$(jq -c '.number' ${FILENAME})" >> $GITHUB_OUTPUT
7575
- name: "Export Pull Request Title"
7676
id: prTitle
77-
run: echo ::set-output name=prTitle::$(jq -c '.pull_request.title' ${FILENAME})
77+
run: echo "prTitle=$(jq -c '.pull_request.title' ${FILENAME})" >> $GITHUB_OUTPUT
7878
- name: "Export Pull Request Body"
7979
id: prBody
80-
run: echo ::set-output name=prBody::$(jq -c '.pull_request.body' ${FILENAME})
80+
run: echo "prBody=$(jq -c '.pull_request.body' ${FILENAME})" >> $GITHUB_OUTPUT
8181
- name: "Export Pull Request Author"
8282
id: prAuthor
83-
run: echo ::set-output name=prAuthor::$(jq -c '.pull_request.user.login' ${FILENAME})
83+
run: echo "prAuthor=$(jq -c '.pull_request.user.login' ${FILENAME})" >> $GITHUB_OUTPUT
8484
- name: "Export Pull Request Action"
8585
id: prAction
86-
run: echo ::set-output name=prAction::$(jq -c '.action' ${FILENAME})
86+
run: echo "prAction=$(jq -c '.action' ${FILENAME})" >> $GITHUB_OUTPUT
8787
- name: "Export Pull Request Merged status"
8888
id: prIsMerged
89-
run: echo ::set-output name=prIsMerged::$(jq -c '.pull_request.merged' ${FILENAME})
89+
run: echo "prIsMerged=$(jq -c '.pull_request.merged' ${FILENAME})" >> $GITHUB_OUTPUT

.github/workflows/reusable_publish_docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
poetry run mike set-default --push latest
6666
6767
- name: Release API docs
68-
uses: peaceiris/actions-gh-pages@64b46b4226a4a12da2239ba3ea5aa73e3163c75b # v3.9.1
68+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
6969
env:
7070
VERSION: ${{ inputs.version }}
7171
with:
@@ -75,7 +75,7 @@ jobs:
7575
destination_dir: ${{ env.VERSION }}/api
7676
- name: Release API docs to latest
7777
if: ${{ inputs.alias == 'latest' }}
78-
uses: peaceiris/actions-gh-pages@64b46b4226a4a12da2239ba3ea5aa73e3163c75b # v3.9.1
78+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
7979
with:
8080
github_token: ${{ secrets.GITHUB_TOKEN }}
8181
publish_dir: ./api

.github/workflows/run-e2e-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ on:
1919
env:
2020
AWS_DEFAULT_REGION: us-east-1
2121

22+
concurrency: e2e
23+
2224
jobs:
2325
run:
2426
runs-on: aws-lambda-powertools_ubuntu-latest_8-core
2527
permissions:
2628
id-token: write # needed to request JWT with GitHub's OIDC Token endpoint. docs: https://bit.ly/3MNgQO9
2729
contents: read
2830
strategy:
31+
fail-fast: false # needed so if a version fails, the others will still be able to complete and cleanup
2932
matrix:
3033
version: ["3.7", "3.8", "3.9"]
3134
if: ${{ github.actor != 'dependabot[bot]' }}
@@ -51,7 +54,7 @@ jobs:
5154
- name: Install dependencies
5255
run: make dev
5356
- name: Configure AWS credentials
54-
uses: aws-actions/configure-aws-credentials@v1
57+
uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef
5558
with:
5659
role-to-assume: ${{ secrets.AWS_TEST_ROLE_ARN }}
5760
aws-region: ${{ env.AWS_DEFAULT_REGION }}

.github/workflows/secure_workflows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v3
1818
- name: Ensure 3rd party workflows have SHA pinned
19-
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@bd2868d14a756969608c618665394415a238de69 # v2.0.5
19+
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@21991cec25093947ff3f62e4c223df0260c39944 # v2.1.2
2020
with:
2121
# Trusted GitHub Actions and/or organizations
2222
allowlist: |

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ repos:
4343
types: [yaml]
4444
files: examples/.*
4545
- repo: https://github.com/rhysd/actionlint
46-
rev: v1.6.21
46+
rev: v1.6.23
4747
hooks:
4848
- id: actionlint-docker
4949
args: [-pyflakes=]

0 commit comments

Comments
 (0)