Skip to content

Commit

Permalink
chore(specs) - Update CloudFormation specs to 154.0.0 (#3005)
Browse files Browse the repository at this point in the history
* Update CloudFormation specs to 154.0.0
* Drop python 3.7 support

---------

Co-authored-by: kddejong <kddejong@users.noreply.github.com>
Co-authored-by: Kevin DeJong <kddejong@amazon.com>
  • Loading branch information
3 people authored Jan 16, 2024
1 parent 4dc004a commit a8e7fa4
Show file tree
Hide file tree
Showing 108 changed files with 46,355 additions and 46,719 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: [ 3.7, 3.8, 3.9, "3.10", "3.11", "3.12" ]
python: [ 3.8, 3.9, "3.10", "3.11", "3.12" ]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ _To get information about the [SAM Transformation](https://docs.aws.amazon.com/A

## Install

Python 3.7+ is supported.
Python 3.8+ is supported.

### Pip

Expand Down
3 changes: 1 addition & 2 deletions docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ To include these rules, use the `-e/include-experimental` argument when running
## Rules
(_This documentation is generated by running `cfn-lint --update-documentation`, do not alter this manually_)

The following **159** rules are applied by this linter:
The following **158** rules are applied by this linter:

| Rule ID | Title | Description | Config<br />(Name:Type:Default) | Source | Tags |
| -------- | ----- | ----------- | ---------- | ------ | ---- |
Expand Down Expand Up @@ -87,7 +87,6 @@ The following **159** rules are applied by this linter:
| [E2015<a name="E2015"></a>](../src/cfnlint/rules/parameters/Default.py) | Default value is within parameter constraints | Making sure the parameters have a default value inside AllowedValues, MinValue, MaxValue, AllowedPattern | | [Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html) | `parameters` |
| [E2503<a name="E2503"></a>](../src/cfnlint/rules/resources/elb/Elb.py) | Resource ELB Properties | See if Elb Resource Properties are set correctly HTTPS has certificate HTTP has no certificate | | [Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html) | `properties`,`elb` |
| [E2504<a name="E2504"></a>](../src/cfnlint/rules/resources/ectwo/Ebs.py) | Check Ec2 Ebs Properties | See if Ec2 Ebs Properties are valid | | [Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html) | `properties`,`ec2`,`ebs` |
| [E2506<a name="E2506"></a>](../src/cfnlint/rules/resources/ectwo/SecurityGroupIngress.py) | Resource EC2 Security Group Ingress Properties | See if EC2 Security Group Ingress Properties are set correctly. Check that "SourceSecurityGroupId" or "SourceSecurityGroupName" are are exclusive and using the type of Ref or GetAtt | | [Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html) | `resources`,`ec2`,`securitygroup` |
| [E2507<a name="E2507"></a>](../src/cfnlint/rules/resources/iam/Policy.py) | Check if IAM Policies are properly configured | See if there elements inside an IAM policy are correct | | [Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html) | `properties`,`iam` |
| [E2520<a name="E2520"></a>](../src/cfnlint/rules/resources/properties/Exclusive.py) | Check Properties that are mutually exclusive | Making sure CloudFormation properties that are exclusive are not defined | | [Source](https://github.com/aws-cloudformation/cfn-python-lint) | `resources` |
| [E2521<a name="E2521"></a>](../src/cfnlint/rules/resources/properties/Inclusive.py) | Check Properties that are required together | Make sure CloudFormation resource properties are included together when required | | [Source](https://github.com/aws-cloudformation/cfn-python-lint) | `resources` |
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_version(filename):
zip_safe=False,
install_requires=[
'pyyaml>5.4',
'aws-sam-translator>=1.82.0',
'aws-sam-translator>=1.83.0',
'jsonpatch',
'jsonschema>=3.0,<5',
'networkx>=2.4,<4',
Expand All @@ -54,7 +54,7 @@ def get_version(filename):
'sympy>=1.0.0',
'regex>=2021.7.1',
],
python_requires='>=3.7, <=4.0, !=4.0',
python_requires='>=3.8, <=4.0, !=4.0',
entry_points={
'console_scripts': [
'cfn-lint = cfnlint.__main__:main'
Expand All @@ -69,7 +69,6 @@ def get_version(filename):
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
Expand Down
7 changes: 7 additions & 0 deletions src/cfnlint/data/AdditionalSpecs/Policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -6839,12 +6839,15 @@
"CommitTransaction",
"CreateDataCellsFilter",
"CreateLFTag",
"CreateLakeFormationIdentityCenterConfiguration",
"CreateLakeFormationOptIn",
"DeleteDataCellsFilter",
"DeleteLFTag",
"DeleteLakeFormationIdentityCenterConfiguration",
"DeleteLakeFormationOptIn",
"DeleteObjectsOnCancel",
"DeregisterResource",
"DescribeLakeFormationIdentityCenterConfiguration",
"DescribeResource",
"DescribeTransaction",
"ExtendTransaction",
Expand Down Expand Up @@ -6877,6 +6880,7 @@
"StartTransaction",
"UpdateDataCellsFilter",
"UpdateLFTag",
"UpdateLakeFormationIdentityCenterConfiguration",
"UpdateResource",
"UpdateTableObjects",
"UpdateTableStorageOptimizer"
Expand Down Expand Up @@ -9466,11 +9470,13 @@
"ARNRegex": "^arn:aws:scn:.+",
"Actions": [
"AssignAdminPermissionsToUser",
"CreateBillOfMaterialsImportJob",
"CreateInstance",
"CreateSSOApplication",
"DeleteInstance",
"DeleteSSOApplication",
"DescribeInstance",
"GetBillOfMaterialsImportJob",
"ListAdminUsers",
"ListInstances",
"ListTagsForResource",
Expand Down Expand Up @@ -14833,6 +14839,7 @@
"ecs:cluster",
"ecs:container-instances",
"ecs:container-name",
"ecs:enable-ebs-volumes",
"ecs:enable-execute-command",
"ecs:enable-service-connect",
"ecs:namespace",
Expand Down
10 changes: 9 additions & 1 deletion src/cfnlint/data/AdditionalSpecs/RdsProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -1135,10 +1135,18 @@
"db.m6i.8xlarge",
"db.m6i.large",
"db.m6i.xlarge",
"db.r6i.12xlarge",
"db.r6i.16xlarge",
"db.r6i.24xlarge",
"db.r6i.2xlarge",
"db.r6i.32xlarge",
"db.r6i.4xlarge",
"db.r6i.8xlarge",
"db.r6i.large",
"db.r6i.xlarge",
"db.t3.2xlarge",
"db.t3.large",
"db.t3.medium",
"db.t3.micro",
"db.t3.small",
"db.t3.xlarge"
],
Expand Down
Loading

0 comments on commit a8e7fa4

Please sign in to comment.