Skip to content

Commit 4960606

Browse files
authored
Merge pull request #3675 from aws/release-v1.92.0
Release 1.92.0 (to main)
2 parents 0388e20 + 0561992 commit 4960606

File tree

165 files changed

+5351
-1927
lines changed

Some content is hidden

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

165 files changed

+5351
-1927
lines changed

.cfnlintrc.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,16 @@ ignore_templates:
131131
- tests/translator/output/**/function_with_mq.json # Property "EventSourceArn" can Fn::GetAtt to a resource of types [AWS::DynamoDB::GlobalTable, AWS::DynamoDB::Table, AWS::Kinesis::Stream, AWS::Kinesis::StreamConsumer, AWS::SQS::Queue]
132132
- tests/translator/output/**/function_with_mq_using_autogen_role.json # Property "EventSourceArn" can Fn::GetAtt to a resource of types [AWS::DynamoDB::GlobalTable, AWS::DynamoDB::Table, AWS::Kinesis::Stream, AWS::Kinesis::StreamConsumer, AWS::SQS::Queue]
133133
- tests/translator/output/**/function_with_recursive_loop.json # Invalid Property Resources/RecursiveLoopParameterFunction/Properties/RecursiveLoop
134+
- tests/translator/output/**/function_with_sourcekmskeyarn.json # Invalid Property Resources/SourceKMSKeyArnParameterFunction/Properties/SourceKMSKeyArn
134135
- tests/translator/output/**/function_with_tracing.json # Obsolete DependsOn on resource
135136
- tests/translator/output/**/api_with_propagate_tags.json # TODO: Intentional error transform tests. Will be updated.
136137
- tests/translator/output/**/function_with_intrinsics_resource_attribute.json # CFN now supports intrinsics in DeletionPolicy
138+
- tests/translator/output/**/function_with_snapstart.json # Snapstart intentionally not attached to a lambda version which causes lint issues
139+
- tests/translator/output/**/managed_policies_everything.json # intentionally contains wrong arns
137140
ignore_checks:
138141
- E2531 # Deprecated runtime; not relevant for transform tests
142+
- E2533 # Another deprecated runtime; not relevant for transform tests
139143
- W2531 # EOL runtime; not relevant for transform tests
140144
- E3001 # Invalid or unsupported Type; common in transform tests since they focus on SAM resources
141145
- W2001 # Parameter not used
146+
- E3006 # Resource type check; we have some Foo Bar resources

DEVELOPMENT_GUIDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ We format our code using [Black](https://github.com/python/black) and verify the
5959
during PR checks. Black will be installed automatically with `make init`.
6060

6161
After installing, you can run our formatting through our Makefile by `make format` or integrating Black directly in your favorite IDE (instructions
62-
can be found [here](https://black.readthedocs.io/en/stable/editor_integration.html))
62+
can be found [here](https://black.readthedocs.io/en/stable/integrations/editors.html))
6363

6464
##### (Workaround) Integrating Black directly in your favorite IDE
65-
Since black is installed in virtualenv, when you follow [this instruction](https://black.readthedocs.io/en/stable/editor_integration.html), `which black` might give you this
65+
Since black is installed in virtualenv, when you follow [this instruction](https://black.readthedocs.io/en/stable/integrations/editors.html), `which black` might give you this
6666

6767
```bash
6868
(sam38) $ where black

bin/add_transform_test.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,13 @@ def get_input_file_path() -> Path:
6868

6969

7070
def copy_input_file_to_transform_test_dir(input_file_path: Path, transform_test_input_path: Path) -> None:
71-
shutil.copyfile(input_file_path, transform_test_input_path)
72-
print(f"Transform Test input file generated {transform_test_input_path}")
71+
try:
72+
shutil.copyfile(input_file_path, transform_test_input_path)
73+
print(f"Transform Test input file generated {transform_test_input_path}")
74+
except shutil.SameFileError:
75+
print(f"Source and destination are the same file: {input_file_path}")
76+
except Exception as e:
77+
raise e
7378

7479

7580
def verify_input_template(input_file_path: Path) -> None:
@@ -99,7 +104,9 @@ def main() -> None:
99104
verify_input_template(input_file_path)
100105

101106
transform_test_input_path = TRANSFORM_TEST_DIR / "input" / (file_basename + ".yaml")
102-
copy_input_file_to_transform_test_dir(input_file_path, transform_test_input_path)
107+
# check if the template is not already in the transform test input dir
108+
if input_file_path != transform_test_input_path:
109+
copy_input_file_to_transform_test_dir(input_file_path, transform_test_input_path)
103110

104111
generate_transform_test_output_files(transform_test_input_path, file_basename)
105112

bin/run_cfn_lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ ! -d "${VENV}" ]; then
99
python3 -m venv "${VENV}"
1010
fi
1111

12-
"${VENV}/bin/python" -m pip install cfn-lint==0.75.0 --upgrade --quiet
12+
"${VENV}/bin/python" -m pip install cfn-lint --upgrade --quiet
1313
# update cfn schema
1414
"${VENV}/bin/cfn-lint" -u
1515
"${VENV}/bin/cfn-lint" --format parseable

integration/resources/templates/combination/all_policy_templates.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Resources:
88
Properties:
99
CodeUri: ${codeuri}
1010
Handler: hello.handler
11-
Runtime: python3.8
11+
Runtime: python3.11
1212
Policies:
1313

1414
- SQSPollerPolicy:
@@ -123,7 +123,7 @@ Resources:
123123
Properties:
124124
CodeUri: ${codeuri}
125125
Handler: hello.handler
126-
Runtime: python3.8
126+
Runtime: python3.11
127127
Policies:
128128

129129
- SESEmailTemplateCrudPolicy: {}
@@ -187,7 +187,7 @@ Resources:
187187
Properties:
188188
CodeUri: ${codeuri}
189189
Handler: hello.handler
190-
Runtime: python3.8
190+
Runtime: python3.11
191191
Policies:
192192
- ElasticMapReduceModifyInstanceFleetPolicy:
193193
ClusterId: name

integration/resources/templates/combination/api_with_authorizers_invokefunction_set_none.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Resources:
1212
InlineCode: |
1313
print("hello")
1414
Handler: index.handler
15-
Runtime: python3.8
15+
Runtime: python3.11
1616
Events:
1717
API3:
1818
Type: Api

integration/resources/templates/combination/api_with_authorizers_max.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ Resources:
125125
Type: AWS::IAM::Role
126126
Properties:
127127
ManagedPolicyArns:
128-
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
129-
- arn:aws:iam::aws:policy/service-role/AWSLambdaRole
128+
- !Sub arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
129+
- !Sub arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaRole
130130
AssumeRolePolicyDocument:
131131
Version: '2012-10-17'
132132
Statement:

integration/resources/templates/combination/api_with_authorizers_max_openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ Resources:
138138
Type: AWS::IAM::Role
139139
Properties:
140140
ManagedPolicyArns:
141-
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
142-
- arn:aws:iam::aws:policy/service-role/AWSLambdaRole
141+
- !Sub arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
142+
- !Sub arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaRole
143143
AssumeRolePolicyDocument:
144144
Version: '2012-10-17'
145145
Statement:

integration/resources/templates/combination/connector_function_to_location_place_index.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Resources:
99
TriggerFunction:
1010
Type: AWS::Serverless::Function
1111
Properties:
12-
Runtime: python3.8
12+
Runtime: python3.11
1313
Handler: index.handler
1414
InlineCode: |
1515
import boto3

integration/resources/templates/combination/depends_on.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Resources:
1212
Role:
1313
Fn::GetAtt: LambdaRole.Arn
1414
Handler: lambda_function.lambda_handler
15-
Runtime: python3.8
15+
Runtime: python3.11
1616
Timeout: 15
1717
CodeUri: ${codeuri}
1818

0 commit comments

Comments
 (0)