Skip to content

Commit 3cfec2f

Browse files
authored
Merge pull request #3845 from aws/release-v1.102.0
Release 1.102.0 (to main)
2 parents 2e03c25 + 0594119 commit 3cfec2f

File tree

58 files changed

+3870
-881
lines changed

Some content is hidden

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

58 files changed

+3870
-881
lines changed

.cfnlintrc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ ignore_templates:
144144
- tests/translator/output/**/function_with_metrics_config.json
145145
- tests/translator/output/**/function_with_self_managed_kafka_and_schema_registry.json # cfnlint is not updated to recognize the SchemaRegistryConfig property
146146
- tests/translator/output/**/function_with_msk_with_schema_registry_config.json # cfnlint is not updated to recognize the SchemaRegistryConfig property
147+
- tests/translator/output/**/function_with_tenancy_config.json # cfnlint is not updated to recognize the TenancyConfig property
148+
- tests/translator/output/**/function_with_tenancy_and_api_event.json # cfnlint is not updated to recognize the TenancyConfig property
149+
- tests/translator/output/**/function_with_tenancy_and_httpapi_event.json # cfnlint is not updated to recognize the TenancyConfig property
150+
- tests/translator/output/**/function_with_tenancy_config_global.json # cfnlint is not updated to recognize the TenancyConfig property
147151

148152
ignore_checks:
149153
- E2531 # Deprecated runtime; not relevant for transform tests

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
### Checklist
88

9+
- [ ] Review the [generative AI contribution guidelines](https://github.com/aws/serverless-application-model/blob/develop/CONTRIBUTING.md#ai-usage)
910
- [ ] Adheres to the [development guidelines](https://github.com/aws/serverless-application-model/blob/develop/DEVELOPMENT_GUIDE.md#development-guidelines)
1011
- [ ] Add/update [transform tests](https://github.com/aws/serverless-application-model/blob/develop/DEVELOPMENT_GUIDE.md#unit-testing-with-multiple-python-versions)
1112
- [ ] Using correct values

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- "3.11"
2727
steps:
2828
- uses: actions/checkout@v5
29-
- uses: actions/setup-python@v5
29+
- uses: actions/setup-python@v6
3030
with:
3131
python-version: ${{ matrix.python }}
3232
- run: make init

.github/workflows/check_compatibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout the PR
1414
uses: actions/checkout@v5
1515

16-
- uses: actions/setup-python@v5
16+
- uses: actions/setup-python@v6
1717
with:
1818
python-version: "3.10"
1919

.github/workflows/schema.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v5
19-
- uses: actions/setup-python@v5
19+
- uses: actions/setup-python@v6
2020
with:
2121
python-version: "3.10"
2222

CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ transparent and open process for evolving AWS SAM.
77

88
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary information to effectively respond to your bug report or contribution.
99

10+
## AI Usage
11+
12+
While using generative AI is allowed when contributing to this project, please keep the following points in mind:
13+
14+
* Review all code yourself before you submit it.
15+
* Understand all the code you have submitted in order to answer any questions the maintainers could have when reviewing your PR.
16+
* Avoid being overly verbose in code and testing - extra code can be hard to review.
17+
* For example, avoid writing unit tests that duplicate existing ones, or test libraries that you're using.
18+
* Keep PR descriptions, comments, and follow ups concise.
19+
* Ensure AI-generated code meets the same quality standards as human-written code.
20+
1021
## Integrating AWS SAM into your tool
1122

1223
We encourage you to modify SAM to integrate it with other frameworks and deployment providers from the community for building serverless applications. If you're building a new tool that will use AWS SAM, let us know how we can help!

bin/run_cfn_lint.sh

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@ if [ ! -d "${VENV}" ]; then
1010
fi
1111

1212
"${VENV}/bin/python" -m pip install cfn-lint --upgrade --quiet
13-
# update cfn schema
14-
"${VENV}/bin/cfn-lint" -u
13+
# update cfn schema with retry logic (can fail due to network issues)
14+
MAX_RETRIES=3
15+
RETRY_COUNT=0
16+
while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
17+
if "${VENV}/bin/cfn-lint" -u; then
18+
echo "Successfully updated cfn-lint schema"
19+
break
20+
else
21+
RETRY_COUNT=$((RETRY_COUNT + 1))
22+
if [ $RETRY_COUNT -lt $MAX_RETRIES ]; then
23+
echo "cfn-lint schema update failed, retrying... (attempt $RETRY_COUNT of $MAX_RETRIES)"
24+
sleep 2
25+
else
26+
echo "cfn-lint schema update failed after $MAX_RETRIES attempts"
27+
exit 1
28+
fi
29+
fi
30+
done
1531
"${VENV}/bin/cfn-lint" --format parseable
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"LogicalResourceId": "MyLambdaFunction",
4+
"ResourceType": "AWS::Lambda::Function"
5+
},
6+
{
7+
"LogicalResourceId": "MyLambdaFunctionRole",
8+
"ResourceType": "AWS::IAM::Role"
9+
}
10+
]

integration/resources/templates/combination/api_with_authorizer_override_api_auth.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ Resources:
5151
Type: AWS::Serverless::Function
5252
Properties:
5353
InlineCode: |
54-
exports.handler = async (event, context, callback) => {
54+
exports.handler = async (event, context) => {
5555
return {
5656
statusCode: 200,
5757
body: 'Success'
5858
}
5959
}
6060
Handler: index.handler
61-
Runtime: nodejs16.x
61+
Runtime: nodejs22.x
6262
Events:
6363
LambdaRequest:
6464
Type: Api
@@ -94,9 +94,9 @@ Resources:
9494
Type: AWS::Serverless::Function
9595
Properties:
9696
Handler: index.handler
97-
Runtime: nodejs16.x
97+
Runtime: nodejs22.x
9898
InlineCode: |
99-
exports.handler = async (event, context, callback) => {
99+
exports.handler = async (event, context) => {
100100
const auth = event.queryStringParameters.authorization
101101
const policyDocument = {
102102
Version: '2012-10-17',

integration/resources/templates/combination/connector_appsync_to_eventbus.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Resources:
117117
API_KEY: !GetAtt ApiKey.ApiKey
118118
GRAPHQL_URL: !GetAtt AppSyncApi.GraphQLUrl
119119
EventBusName: !Ref EventBus
120-
Runtime: nodejs16.x
120+
Runtime: nodejs22.x
121121
Handler: index.handler
122122
InlineCode: |
123123
const https = require("https");

0 commit comments

Comments
 (0)