Skip to content

Commit f04a81b

Browse files
committed
Merge branch 'develop' into ryandeivert-firehose-event
2 parents 085873a + ec709c3 commit f04a81b

File tree

102 files changed

+1761
-261
lines changed

Some content is hidden

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

102 files changed

+1761
-261
lines changed
+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: I Made This (showcase your work)
2+
description: Share what you did with Powertools 💞💞. Blog post, workshops, presentation, sample apps, etc.
3+
title: "[I Made This]: <TITLE>"
4+
labels: ["community-content"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: Thank you for helping spread the word out on Powertools, truly!
9+
- type: input
10+
id: content
11+
attributes:
12+
label: Link to your material
13+
description: |
14+
Please share the original link to your material.
15+
16+
*Note: Short links will be expanded when added to Powertools documentation*
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: description
21+
attributes:
22+
label: Description
23+
description: Describe in one paragraph what's in it for them (readers)
24+
validations:
25+
required: true
26+
- type: input
27+
id: author
28+
attributes:
29+
label: Preferred contact
30+
description: What's your preferred contact? We'll list it next to this content
31+
validations:
32+
required: true
33+
- type: input
34+
id: author-social
35+
attributes:
36+
label: (Optional) Social Network
37+
description: If different from preferred contact, what's your preferred contact for social interactions?
38+
validations:
39+
required: false
40+
- type: textarea
41+
id: notes
42+
attributes:
43+
label: (Optional) Additional notes
44+
description: |
45+
Any notes you might want to share with us related to this material.
46+
47+
*Note: These notes are explicitly to Powertools maintainers. It will not be added to the community resources page.*
48+
validations:
49+
required: false
50+
- type: checkboxes
51+
id: acknowledgment
52+
attributes:
53+
label: Acknowledgment
54+
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)
56+
required: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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>"
4+
labels: ["customer-reference"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thank you for becoming a reference customer. Your support means a lot to us. It also helps new customers to know who's using it.
10+
11+
If you would like us to also display your organization's logo, please share a link in the `Company logo` field.
12+
- type: input
13+
id: organization
14+
attributes:
15+
label: Organization Name
16+
description: Please share the name of your organization
17+
placeholder: ACME
18+
validations:
19+
required: true
20+
- type: input
21+
id: name
22+
attributes:
23+
label: Your Name
24+
description: Please share your name
25+
validations:
26+
required: true
27+
- type: input
28+
id: job
29+
attributes:
30+
label: Your current position
31+
description: Please share your current position at your company
32+
validations:
33+
required: true
34+
- type: input
35+
id: logo
36+
attributes:
37+
label: (Optional) Company logo
38+
description: Company logo you want us to display. You also allow us to resize for optimal placement in the documentation.
39+
validations:
40+
required: false
41+
- type: textarea
42+
id: use_case
43+
attributes:
44+
label: (Optional) Use case
45+
description: How are you using Lambda Powertools today? *features, etc.*
46+
validations:
47+
required: false
48+
- type: checkboxes
49+
id: other_languages
50+
attributes:
51+
label: Also using other Lambda Powertools languages?
52+
options:
53+
- label: Java
54+
required: false
55+
- label: TypeScript
56+
required: false
57+
- label: .NET
58+
required: false
59+
- type: markdown
60+
attributes:
61+
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.*
63+
64+
*You can opt-out at any time by commenting or reopening this issue.*

.github/workflows/auto-merge.yml

+1-1
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/[email protected].3
17+
uses: dependabot/[email protected].4
1818
with:
1919
github-token: "${{ secrets.GITHUB_TOKEN }}"
2020
- name: Enable auto-merge for mypy-boto3 stubs Dependabot PRs
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Deploy v2 layer to all regions
2+
3+
permissions:
4+
id-token: write
5+
contents: read
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
latest_published_version:
11+
description: "Latest PyPi published version to rebuild latest docs for, e.g. v1.22.0"
12+
required: true
13+
14+
jobs:
15+
dummy:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Hello world
19+
run: echo "hello world"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy V2 SAR
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
stage:
7+
description: "Deployment stage (BETA, PROD)"
8+
required: true
9+
type: string
10+
artefact-name:
11+
description: "CDK Layer Artefact name to download"
12+
required: true
13+
type: string
14+
package-version:
15+
description: "The version of the package to deploy"
16+
required: true
17+
type: string
18+
environment:
19+
description: "GitHub Environment to use for encrypted secrets"
20+
required: true
21+
type: string
22+
23+
jobs:
24+
dummy:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Hello world
28+
run: echo "hello world"

CHANGELOG.md

+86-5
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,103 @@
44
<a name="unreleased"></a>
55
# Unreleased
66

7+
## Maintenance
8+
9+
* **layer:** bump to 1.31.1 (v39)
10+
11+
12+
<a name="v1.31.1"></a>
13+
## [v1.31.1] - 2022-10-14
14+
## Bug Fixes
15+
16+
* **parser:** loose validation on SNS fields to support FIFO ([#1606](https://github.com/awslabs/aws-lambda-powertools-python/issues/1606))
17+
18+
## Documentation
19+
20+
* **governance:** allow community to suggest feature content ([#1593](https://github.com/awslabs/aws-lambda-powertools-python/issues/1593))
21+
* **governance:** new form to allow customers self-nominate as public reference ([#1589](https://github.com/awslabs/aws-lambda-powertools-python/issues/1589))
22+
* **homepage:** include .NET powertools
23+
* **idempotency:** "persisntence" typo ([#1596](https://github.com/awslabs/aws-lambda-powertools-python/issues/1596))
24+
* **logger:** fix typo. ([#1587](https://github.com/awslabs/aws-lambda-powertools-python/issues/1587))
25+
26+
## Maintenance
27+
28+
* add dummy v2 sar deploy job
29+
* bump layer version to 38
30+
* **deps-dev:** bump mypy-boto3-ssm from 1.24.81 to 1.24.90 ([#1594](https://github.com/awslabs/aws-lambda-powertools-python/issues/1594))
31+
* **deps-dev:** bump flake8-builtins from 1.5.3 to 2.0.0 ([#1582](https://github.com/awslabs/aws-lambda-powertools-python/issues/1582))
32+
33+
34+
<a name="v1.31.0"></a>
35+
## [v1.31.0] - 2022-10-10
36+
## Bug Fixes
37+
38+
* **metrics:** ensure dimension_set is reused across instances (pointer) ([#1581](https://github.com/awslabs/aws-lambda-powertools-python/issues/1581))
39+
40+
## Documentation
41+
42+
* **readme:** add lambda layer latest version badge
43+
44+
## Features
45+
46+
* **parser:** add KinesisFirehoseModel ([#1556](https://github.com/awslabs/aws-lambda-powertools-python/issues/1556))
47+
48+
## Maintenance
49+
50+
* **deps-dev:** bump types-requests from 2.28.11.1 to 2.28.11.2 ([#1576](https://github.com/awslabs/aws-lambda-powertools-python/issues/1576))
51+
* **deps-dev:** bump typing-extensions from 4.3.0 to 4.4.0 ([#1575](https://github.com/awslabs/aws-lambda-powertools-python/issues/1575))
52+
* **layer:** remove unsused GetFunction permission for the canary
53+
* **layer:** bump to latest version 37
54+
55+
56+
<a name="v1.30.0"></a>
57+
## [v1.30.0] - 2022-10-05
758
## Bug Fixes
859

60+
* **apigateway:** update Response class to require status_code only ([#1560](https://github.com/awslabs/aws-lambda-powertools-python/issues/1560))
61+
* **ci:** integrate isort 5.0 with black to resolve conflicts
62+
* **event_sources:** implement Mapping protocol on DictWrapper for better interop with existing middlewares ([#1516](https://github.com/awslabs/aws-lambda-powertools-python/issues/1516))
63+
* **typing:** fix mypy error
964
* **typing:** level arg in copy_config_to_registered_loggers ([#1534](https://github.com/awslabs/aws-lambda-powertools-python/issues/1534))
1065

1166
## Documentation
1267

68+
* **batch:** document the new lambda context feature
69+
* **homepage:** introduce POWERTOOLS_DEV env var ([#1569](https://github.com/awslabs/aws-lambda-powertools-python/issues/1569))
70+
* **multiple:** fix highlighting after new isort/black integration
1371
* **parser:** add JSON string field extension example ([#1526](https://github.com/awslabs/aws-lambda-powertools-python/issues/1526))
1472

73+
## Features
74+
75+
* **batch:** inject lambda_context if record handler signature accepts it ([#1561](https://github.com/awslabs/aws-lambda-powertools-python/issues/1561))
76+
* **event-handler:** context support to share data between routers ([#1567](https://github.com/awslabs/aws-lambda-powertools-python/issues/1567))
77+
* **logger:** introduce POWERTOOLS_DEBUG for internal debugging ([#1572](https://github.com/awslabs/aws-lambda-powertools-python/issues/1572))
78+
* **logger:** include logger name attribute when copy_config_to_registered_logger is used ([#1568](https://github.com/awslabs/aws-lambda-powertools-python/issues/1568))
79+
* **logger:** pretty-print JSON when POWERTOOLS_DEV is set ([#1548](https://github.com/awslabs/aws-lambda-powertools-python/issues/1548))
80+
1581
## Maintenance
1682

17-
* **deps:** bump codecov/codecov-action from 3.1.0 to 3.1.1 ([#1529](https://github.com/awslabs/aws-lambda-powertools-python/issues/1529))
83+
* **dep:** bump pyproject to pypi sync
84+
* **deps:** bump fastjsonschema from 2.16.1 to 2.16.2 ([#1530](https://github.com/awslabs/aws-lambda-powertools-python/issues/1530))
1885
* **deps:** bump actions/setup-python from 3 to 4 ([#1528](https://github.com/awslabs/aws-lambda-powertools-python/issues/1528))
86+
* **deps:** bump codecov/codecov-action from 3.1.0 to 3.1.1 ([#1529](https://github.com/awslabs/aws-lambda-powertools-python/issues/1529))
87+
* **deps:** bump dependabot/fetch-metadata from 1.3.3 to 1.3.4 ([#1565](https://github.com/awslabs/aws-lambda-powertools-python/issues/1565))
1988
* **deps:** bump email-validator from 1.2.1 to 1.3.0 ([#1533](https://github.com/awslabs/aws-lambda-powertools-python/issues/1533))
20-
* **deps:** bump fastjsonschema from 2.16.1 to 2.16.2 ([#1530](https://github.com/awslabs/aws-lambda-powertools-python/issues/1530))
21-
* **deps-dev:** bump mypy-boto3-s3 from 1.24.36.post1 to 1.24.76 ([#1531](https://github.com/awslabs/aws-lambda-powertools-python/issues/1531))
22-
* **deps-dev:** bump mkdocs-material from 8.5.1 to 8.5.3 ([#1532](https://github.com/awslabs/aws-lambda-powertools-python/issues/1532))
89+
* **deps-dev:** bump mypy-boto3-secretsmanager from 1.24.54 to 1.24.83 ([#1557](https://github.com/awslabs/aws-lambda-powertools-python/issues/1557))
90+
* **deps-dev:** bump mkdocs-material from 8.5.3 to 8.5.4 ([#1563](https://github.com/awslabs/aws-lambda-powertools-python/issues/1563))
91+
* **deps-dev:** bump pytest-cov from 3.0.0 to 4.0.0 ([#1551](https://github.com/awslabs/aws-lambda-powertools-python/issues/1551))
92+
* **deps-dev:** bump flake8-bugbear from 22.9.11 to 22.9.23 ([#1541](https://github.com/awslabs/aws-lambda-powertools-python/issues/1541))
93+
* **deps-dev:** bump types-requests from 2.28.11 to 2.28.11.1 ([#1571](https://github.com/awslabs/aws-lambda-powertools-python/issues/1571))
94+
* **deps-dev:** bump mypy-boto3-ssm from 1.24.69 to 1.24.80 ([#1542](https://github.com/awslabs/aws-lambda-powertools-python/issues/1542))
2395
* **deps-dev:** bump mako from 1.2.2 to 1.2.3 ([#1537](https://github.com/awslabs/aws-lambda-powertools-python/issues/1537))
2496
* **deps-dev:** bump types-requests from 2.28.10 to 2.28.11 ([#1538](https://github.com/awslabs/aws-lambda-powertools-python/issues/1538))
97+
* **deps-dev:** bump mkdocs-material from 8.5.1 to 8.5.3 ([#1532](https://github.com/awslabs/aws-lambda-powertools-python/issues/1532))
98+
* **deps-dev:** bump mypy-boto3-ssm from 1.24.80 to 1.24.81 ([#1544](https://github.com/awslabs/aws-lambda-powertools-python/issues/1544))
99+
* **deps-dev:** bump mypy-boto3-s3 from 1.24.36.post1 to 1.24.76 ([#1531](https://github.com/awslabs/aws-lambda-powertools-python/issues/1531))
25100
* **docs:** bump layer version to 36 (1.29.2)
101+
* **layers:** add dummy v2 layer automation
102+
* **lint:** use new isort black integration
103+
* **multiple:** localize powertools_dev env logic and warning ([#1570](https://github.com/awslabs/aws-lambda-powertools-python/issues/1570))
26104

27105

28106
<a name="v1.29.2"></a>
@@ -2352,7 +2430,10 @@
23522430
* Merge pull request [#5](https://github.com/awslabs/aws-lambda-powertools-python/issues/5) from jfuss/feat/python38
23532431

23542432

2355-
[Unreleased]: https://github.com/awslabs/aws-lambda-powertools-python/compare/v1.29.2...HEAD
2433+
[Unreleased]: https://github.com/awslabs/aws-lambda-powertools-python/compare/v1.31.1...HEAD
2434+
[v1.31.1]: https://github.com/awslabs/aws-lambda-powertools-python/compare/v1.31.0...v1.31.1
2435+
[v1.31.0]: https://github.com/awslabs/aws-lambda-powertools-python/compare/v1.30.0...v1.31.0
2436+
[v1.30.0]: https://github.com/awslabs/aws-lambda-powertools-python/compare/v1.29.2...v1.30.0
23562437
[v1.29.2]: https://github.com/awslabs/aws-lambda-powertools-python/compare/v1.29.1...v1.29.2
23572438
[v1.29.1]: https://github.com/awslabs/aws-lambda-powertools-python/compare/v1.29.0...v1.29.1
23582439
[v1.29.0]: https://github.com/awslabs/aws-lambda-powertools-python/compare/v1.28.0...v1.29.0

MAINTAINERS.md

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ These are the most common labels used by maintainers to triage issues, pull requ
9494
| github-actions | Changes in GitHub workflows | PR automation |
9595
| github-templates | Changes in GitHub issue/PR templates | PR automation |
9696
| internal | Changes in governance, tech debt and chores (linting setup, baseline, etc.) | PR automation |
97+
| customer-reference | Authorization to use company name in our documentation | Public Relations |
98+
| community-content | Suggested content to feature in our documentation | Public Relations |
9799

98100
## Maintainer Responsibilities
99101

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
<!-- markdownlint-disable MD043 MD041 -->
12
# AWS Lambda Powertools for Python
23

34
[![Build](https://github.com/awslabs/aws-lambda-powertools-python/actions/workflows/python_build.yml/badge.svg)](https://github.com/awslabs/aws-lambda-powertools-python/actions/workflows/python_build.yml)
45
[![codecov.io](https://codecov.io/github/awslabs/aws-lambda-powertools-python/branch/develop/graphs/badge.svg)](https://app.codecov.io/gh/awslabs/aws-lambda-powertools-python)
5-
![PythonSupport](https://img.shields.io/static/v1?label=python&message=3.6%20|%203.7|%203.8|%203.9&color=blue?style=flat-square&logo=python) ![PyPI version](https://badge.fury.io/py/aws-lambda-powertools.svg) ![PyPi monthly downloads](https://img.shields.io/pypi/dm/aws-lambda-powertools)
6-
[![Join our Discord](https://dcbadge.vercel.app/api/server/B8zZKbbyET)](https://discord.gg/B8zZKbbyET)
6+
![PythonSupport](https://img.shields.io/static/v1?label=python&message=3.6%20|%203.7|%203.8|%203.9&color=blue?style=flat-square&logo=python) ![PyPI version](https://badge.fury.io/py/aws-lambda-powertools.svg) ![PyPi monthly downloads](https://img.shields.io/pypi/dm/aws-lambda-powertools) [![Join our Discord](https://dcbadge.vercel.app/api/server/B8zZKbbyET)](https://discord.gg/B8zZKbbyET)
77

8-
A suite of Python utilities for AWS Lambda functions to ease adopting best practices such as tracing, structured logging, custom metrics, and more. (AWS Lambda Powertools [Java](https://github.com/awslabs/aws-lambda-powertools-java) and [Typescript](https://github.com/awslabs/aws-lambda-powertools-typescript) is also available).
8+
A suite of Python utilities for AWS Lambda functions to ease adopting best practices such as tracing, structured logging, custom metrics, and more.
9+
10+
> Also available in [Java](https://github.com/awslabs/aws-lambda-powertools-java), [Typescript](https://github.com/awslabs/aws-lambda-powertools-typescript), and [.NET](https://awslabs.github.io/aws-lambda-powertools-dotnet/).
911
1012
**[📜Documentation](https://awslabs.github.io/aws-lambda-powertools-python/)** | **[🐍PyPi](https://pypi.org/project/aws-lambda-powertools/)** | **[Roadmap](https://awslabs.github.io/aws-lambda-powertools-python/latest/roadmap/)** | **[Detailed blog post](https://aws.amazon.com/blogs/opensource/simplifying-serverless-best-practices-with-lambda-powertools/)**
1113

0 commit comments

Comments
 (0)