Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autogenerated maintenance #1936

Merged
merged 2 commits into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 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 **142** rules are applied by this linter:
The following **143** rules are applied by this linter:

| Rule ID | Title | Description | Config<br />(Name:Type:Default) | Source | Tags |
| -------- | ----- | ----------- | ---------- | ------ | ---- |
Expand Down Expand Up @@ -164,6 +164,7 @@ The following **142** rules are applied by this linter:
| [I3011<a name="I3011"></a>](../src/cfnlint/rules/resources/UpdateReplacePolicyDeletionPolicyOnStatefulResourceTypes.py) | Check stateful resources have a set UpdateReplacePolicy/DeletionPolicy | The default action when replacing/removing a resource is to delete it. This check requires you to explicitly set policies | | [Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html) | `resources`,`updatereplacepolicy`,`deletionpolicy` |
| [I3012<a name="I3012"></a>](../src/cfnlint/rules/resources/ApproachingLimitName.py) | Resource name limit | Check the size of Resource names in the template is approaching the upper limit | | [Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html) | `resources`,`limits` |
| [I3037<a name="I3037"></a>](../src/cfnlint/rules/resources/properties/ListDuplicatesAllowed.py) | Check if a list that allows duplicates has any duplicates | Certain lists support duplicate items.Provide an alert when list of strings or numbers have repeats. | | [Source](https://github.com/aws-cloudformation/cfn-python-lint/blob/master/docs/rules.md#rules-1) | `resources`,`property`,`list` |
| [I3042<a name="I3042"></a>](../src/cfnlint/rules/resources/HardCodedArnProperties.py) | ARNs should use correctly placed Pseudo Parameters | Checks Resources if ARNs use correctly placed Pseudo Parameters instead of hardcoded Partition, Region, and Account Number | partition:boolean:True<br />region:boolean:False<br />accountId:boolean:False | [Source]() | `resources` |
| [I6010<a name="I6010"></a>](../src/cfnlint/rules/outputs/ApproachingLimitNumber.py) | Output limit | Check the number of Outputs in the template is approaching the upper limit | | [Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html) | `outputs`,`limits` |
| [I6011<a name="I6011"></a>](../src/cfnlint/rules/outputs/ApproachingLimitName.py) | Output name limit | Check the size of Output names in the template is approaching the upper limit | | [Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html) | `outputs`,`limits` |
| [I6012<a name="I6012"></a>](../src/cfnlint/rules/outputs/ApproachingLimitDescription.py) | Output description limit | Check the size of Output description in the template is approaching the upper limit | | [Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html) | `outputs`,`limits` |
Expand Down
201 changes: 125 additions & 76 deletions src/cfnlint/data/AdditionalSpecs/Policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@
"DescribeRecoveryPoint",
"DescribeRegionSettings",
"DescribeRestoreJob",
"DisassociateRecoveryPoint",
"ExportBackupPlanTemplate",
"GetBackupPlan",
"GetBackupPlanFromJSON",
Expand Down Expand Up @@ -684,10 +685,12 @@
"DeleteCertificate",
"DescribeCertificate",
"ExportCertificate",
"GetAccountConfiguration",
"GetCertificate",
"ImportCertificate",
"ListCertificates",
"ListTagsForCertificate",
"PutAccountConfiguration",
"RemoveTagsFromCertificate",
"RenewCertificate",
"RequestCertificate",
Expand Down Expand Up @@ -2780,6 +2783,42 @@
"health:service"
]
},
"AWS IAM Access Analyzer": {
"ARNFormat": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}",
"ARNRegex": "^arn:${Partition}:access-analyzer:.+",
"Actions": [
"ApplyArchiveRule",
"CreateAccessPreview",
"CreateAnalyzer",
"CreateArchiveRule",
"DeleteAnalyzer",
"DeleteArchiveRule",
"GetAccessPreview",
"GetAnalyzedResource",
"GetAnalyzer",
"GetArchiveRule",
"GetFinding",
"ListAccessPreviewFindings",
"ListAccessPreviews",
"ListAnalyzedResources",
"ListAnalyzers",
"ListArchiveRules",
"ListFindings",
"ListTagsForResource",
"StartResourceScan",
"TagResource",
"UntagResource",
"UpdateArchiveRule",
"UpdateFindings"
],
"HasResource": true,
"StringPrefix": "access-analyzer",
"conditionKeys": [
"aws:RequestTag/${TagKey}",
"aws:ResourceTag/${TagKey}",
"aws:TagKeys"
]
},
"AWS IQ": {
"ARNFormat": "arn:aws:iq::<account-id>:<resource-type>/<resource_name>",
"ARNRegex": "^arn:aws:iq::.+",
Expand Down Expand Up @@ -5348,6 +5387,8 @@
"aws:RequestTag/${TagKey}",
"aws:ResourceTag/${TagKey}",
"aws:TagKeys",
"ecs:ResourceTag/${TagKey}",
"ecs:cluster",
"ssm:Overwrite",
"ssm:Recursive",
"ssm:SessionDocumentAccessCheck",
Expand Down Expand Up @@ -5702,8 +5743,11 @@
"ListMilestones",
"ListNotifications",
"ListShareInvitations",
"ListTagsForResource",
"ListWorkloadShares",
"ListWorkloads",
"TagResource",
"UntagResource",
"UpdateAnswer",
"UpdateLensReview",
"UpdateShareInvitation",
Expand All @@ -5712,7 +5756,12 @@
"UpgradeLensReview"
],
"HasResource": true,
"StringPrefix": "wellarchitected"
"StringPrefix": "wellarchitected",
"conditionKeys": [
"aws:RequestTag/${TagKey}",
"aws:ResourceTag/${TagKey}",
"aws:TagKeys"
]
},
"AWS X-Ray": {
"ARNFormat": "arn:${Partition}:xray:${Region}:${Account}:${ResourceType}/${ResourceId}",
Expand Down Expand Up @@ -6587,7 +6636,10 @@
"UpdateCanary"
],
"HasResource": true,
"StringPrefix": "synthetics"
"StringPrefix": "synthetics",
"conditionKeys": [
"aws:ResourceTag/${TagKey}"
]
},
"Amazon CodeGuru": {
"ARNFormat": "arn:aws:codeguru:<region>:<account-id>:<resource-type>/<resource_name>",
Expand Down Expand Up @@ -7448,6 +7500,7 @@
"DeregisterTransitGatewayMulticastGroupSources",
"DescribeAccountAttributes",
"DescribeAddresses",
"DescribeAddressesAttribute",
"DescribeAggregateIdFormat",
"DescribeAvailabilityZones",
"DescribeBundleTasks",
Expand Down Expand Up @@ -7623,6 +7676,7 @@
"ImportKeyPair",
"ImportSnapshot",
"ImportVolume",
"ModifyAddressAttribute",
"ModifyAvailabilityZoneGroup",
"ModifyCapacityReservation",
"ModifyClientVpnEndpoint",
Expand Down Expand Up @@ -7693,6 +7747,7 @@
"ReportInstanceStatus",
"RequestSpotFleet",
"RequestSpotInstances",
"ResetAddressAttribute",
"ResetEbsDefaultKmsKeyId",
"ResetFpgaImageAttribute",
"ResetImageAttribute",
Expand Down Expand Up @@ -7761,6 +7816,7 @@
"ec2:MetadataHttpEndpoint",
"ec2:MetadataHttpPutResponseHopLimit",
"ec2:MetadataHttpTokens",
"ec2:OutpostArn",
"ec2:Owner",
"ec2:ParentSnapshot",
"ec2:ParentVolume",
Expand Down Expand Up @@ -7793,6 +7849,7 @@
"ec2:ServerCertificateArn",
"ec2:SnapshotTime",
"ec2:SourceInstanceARN",
"ec2:SourceOutpostArn",
"ec2:Subnet",
"ec2:Tenancy",
"ec2:VolumeIops",
Expand Down Expand Up @@ -8234,47 +8291,6 @@
"ecs:task-definition"
]
},
"Amazon Elastic Container Service for Kubernetes": {
"ARNFormat": "arn:aws:eks:<region>:<account_ID>:<resource_type>/<relative_ID>",
"ARNRegex": "^arn:aws:eks:.+",
"Actions": [
"AccessKubernetesApi",
"CreateAddon",
"CreateCluster",
"CreateFargateProfile",
"CreateNodegroup",
"DeleteAddon",
"DeleteCluster",
"DeleteFargateProfile",
"DeleteNodegroup",
"DescribeAddon",
"DescribeAddonVersions",
"DescribeCluster",
"DescribeFargateProfile",
"DescribeNodegroup",
"DescribeUpdate",
"ListAddons",
"ListClusters",
"ListFargateProfiles",
"ListNodegroups",
"ListTagsForResource",
"ListUpdates",
"TagResource",
"UntagResource",
"UpdateAddon",
"UpdateClusterConfig",
"UpdateClusterVersion",
"UpdateNodegroupConfig",
"UpdateNodegroupVersion"
],
"HasResource": true,
"StringPrefix": "eks",
"conditionKeys": [
"aws:RequestTag/${TagKey}",
"aws:ResourceTag/${TagKey}",
"aws:TagKeys"
]
},
"Amazon Elastic File System": {
"ARNFormat": "arn:${Partition}:elasticfilesystem:${Region}:${Account}:${ResourceType}/${ResourcePath}",
"ARNRegex": "^arn:${Partition}:elasticfilesystem:.+",
Expand Down Expand Up @@ -8330,6 +8346,54 @@
"HasResource": true,
"StringPrefix": "elastic-inference"
},
"Amazon Elastic Kubernetes Service": {
"ARNFormat": "arn:aws:eks:<region>:<account_ID>:<resource_type>/<relative_ID>",
"ARNRegex": "^arn:aws:eks:.+",
"Actions": [
"AccessKubernetesApi",
"AssociateEncryptionConfig",
"AssociateIdentityProviderConfig",
"CreateAddon",
"CreateCluster",
"CreateFargateProfile",
"CreateNodegroup",
"DeleteAddon",
"DeleteCluster",
"DeleteFargateProfile",
"DeleteNodegroup",
"DescribeAddon",
"DescribeAddonVersions",
"DescribeCluster",
"DescribeFargateProfile",
"DescribeIdentityProviderConfig",
"DescribeNodegroup",
"DescribeUpdate",
"DisassociateIdentityProviderConfig",
"ListAddons",
"ListClusters",
"ListFargateProfiles",
"ListIdentityProviderConfigs",
"ListNodegroups",
"ListTagsForResource",
"ListUpdates",
"TagResource",
"UntagResource",
"UpdateAddon",
"UpdateClusterConfig",
"UpdateClusterVersion",
"UpdateNodegroupConfig",
"UpdateNodegroupVersion"
],
"HasResource": true,
"StringPrefix": "eks",
"conditionKeys": [
"aws:RequestTag/${TagKey}",
"aws:ResourceTag/${TagKey}",
"aws:TagKeys",
"eks:clientId",
"eks:issuerUrl"
]
},
"Amazon Elastic MapReduce": {
"ARNFormat": "arn:aws:elasticmapreduce:<region>:<account>:<resourceType>/<resourceId>",
"ARNRegex": "^arn:aws:elasticmapreduce:.+",
Expand Down Expand Up @@ -8461,23 +8525,33 @@
"Actions": [
"ActivateEventSource",
"CancelReplay",
"CreateApiDestination",
"CreateArchive",
"CreateConnection",
"CreateEventBus",
"CreatePartnerEventSource",
"DeactivateEventSource",
"DeauthorizeConnection",
"DeleteApiDestination",
"DeleteArchive",
"DeleteConnection",
"DeleteEventBus",
"DeletePartnerEventSource",
"DeleteRule",
"DescribeApiDestination",
"DescribeArchive",
"DescribeConnection",
"DescribeEventBus",
"DescribeEventSource",
"DescribePartnerEventSource",
"DescribeReplay",
"DescribeRule",
"DisableRule",
"EnableRule",
"InvokeApiDestination",
"ListApiDestinations",
"ListArchives",
"ListConnections",
"ListEventBuses",
"ListEventSources",
"ListPartnerEventSourceAccounts",
Expand All @@ -8498,7 +8572,9 @@
"TagResource",
"TestEventPattern",
"UntagResource",
"UpdateArchive"
"UpdateApiDestination",
"UpdateArchive",
"UpdateConnection"
],
"HasResource": true,
"StringPrefix": "events",
Expand Down Expand Up @@ -8625,6 +8701,7 @@
"ListPredictors",
"ListTagsForResource",
"QueryForecast",
"StopResource",
"TagResource",
"UntagResource",
"UpdateDatasetGroup"
Expand Down Expand Up @@ -10522,6 +10599,7 @@
"CreateDBInstanceReadReplica",
"CreateDBParameterGroup",
"CreateDBProxy",
"CreateDBProxyEndpoint",
"CreateDBSecurityGroup",
"CreateDBSnapshot",
"CreateDBSubnetGroup",
Expand All @@ -10537,6 +10615,7 @@
"DeleteDBInstanceAutomatedBackup",
"DeleteDBParameterGroup",
"DeleteDBProxy",
"DeleteDBProxyEndpoint",
"DeleteDBSecurityGroup",
"DeleteDBSnapshot",
"DeleteDBSubnetGroup",
Expand All @@ -10560,6 +10639,7 @@
"DescribeDBParameterGroups",
"DescribeDBParameters",
"DescribeDBProxies",
"DescribeDBProxyEndpoints",
"DescribeDBProxyTargetGroups",
"DescribeDBProxyTargets",
"DescribeDBSecurityGroups",
Expand Down Expand Up @@ -10593,6 +10673,7 @@
"ModifyDBInstance",
"ModifyDBParameterGroup",
"ModifyDBProxy",
"ModifyDBProxyEndpoint",
"ModifyDBProxyTargetGroup",
"ModifyDBSnapshot",
"ModifyDBSnapshotAttribute",
Expand Down Expand Up @@ -12619,38 +12700,6 @@
"aws:TagKeys"
]
},
"IAM Access Analyzer": {
"ARNFormat": "arn:${Partition}:access-analyzer::analyzer/${analyzerName}",
"ARNRegex": "^arn:${Partition}:access-analyzer::.+",
"Actions": [
"ApplyArchiveRule",
"CreateAnalyzer",
"CreateArchiveRule",
"DeleteAnalyzer",
"DeleteArchiveRule",
"GetAnalyzedResource",
"GetAnalyzer",
"GetArchiveRule",
"GetFinding",
"ListAnalyzedResources",
"ListAnalyzers",
"ListArchiveRules",
"ListFindings",
"ListTagsForResource",
"StartResourceScan",
"TagResource",
"UntagResource",
"UpdateArchiveRule",
"UpdateFindings"
],
"HasResource": true,
"StringPrefix": "access-analyzer",
"conditionKeys": [
"aws:RequestTag/${TagKey}",
"aws:ResourceTag/${TagKey}",
"aws:TagKeys"
]
},
"Identity And Access Management": {
"ARNFormat": "arn:aws:iam::<namespace>:<relative-id>",
"ARNRegex": "^arn:aws:iam::.+",
Expand Down
Loading