Skip to content

Commit 1cd60b2

Browse files
committed
refactor(rule): made rule optional
main rule should catch everything Signed-off-by: Fred Myerscough <oniice@gmail.com>
1 parent 0b01bc5 commit 1cd60b2

6 files changed

+11
-11
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ plugin "aws-meta" {
3030

3131
|Name|Description|Severity|Enabled|Link|
3232
| --- | --- | --- | --- | --- |
33-
|aws_iam_role_policy_hardcoded_region|Validates that there are no hardcoded AWS regions in IAM role policy documents|WARNING||[docs](docs/rules.md#aws_iam_role_policy_hardcoded_region)|
34-
|aws_iam_role_policy_hardcoded_partition|Validates that there are no hardcoded AWS partitions in IAM role policy documents|WARNING||[docs](docs/rules.md#aws_iam_role_policy_hardcoded_partition)|
35-
|aws_iam_policy_hardcoded_region|Validates that there are no hardcoded AWS regions in IAM policy documents|WARNING||[docs](docs/rules.md#aws_iam_policy_hardcoded_region)|
36-
|aws_iam_policy_hardcoded_partition|Validates that there are no hardcoded AWS partitions in IAM policy documents|WARNING||[docs](docs/rules.md#aws_iam_policy_hardcoded_partition)|
37-
|aws_provider_hardcoded_region|Validates that there are no hardcoded AWS regions in provider configuration|WARNING||[docs](docs/rules.md#aws_provider_hardcoded_region)|
38-
|aws_arn_hardcoded|Validates that there are no hardcoded AWS regions or partitions in ARN values across all resource types|WARNING||[docs](docs/rules.md#aws_arn_hardcoded)|
33+
|aws_meta_hardcoded|Validates that there are no hardcoded AWS regions or partitions in ARN values across all resource types|WARNING||[docs](docs/rules.md#aws_meta_hardcoded)|
34+
|aws_iam_role_policy_hardcoded_region|Validates that there are no hardcoded AWS regions in IAM role policy documents|WARNING||[docs](docs/rules.md#aws_iam_role_policy_hardcoded_region)|
35+
|aws_iam_role_policy_hardcoded_partition|Validates that there are no hardcoded AWS partitions in IAM role policy documents|WARNING||[docs](docs/rules.md#aws_iam_role_policy_hardcoded_partition)|
36+
|aws_iam_policy_hardcoded_region|Validates that there are no hardcoded AWS regions in IAM policy documents|WARNING||[docs](docs/rules.md#aws_iam_policy_hardcoded_region)|
37+
|aws_iam_policy_hardcoded_partition|Validates that there are no hardcoded AWS partitions in IAM policy documents|WARNING||[docs](docs/rules.md#aws_iam_policy_hardcoded_partition)|
38+
|aws_provider_hardcoded_region|Validates that there are no hardcoded AWS regions in provider configuration|WARNING||[docs](docs/rules.md#aws_provider_hardcoded_region)|
3939

4040
For detailed examples and usage information, see the [Rule Details documentation](docs/rules.md).
4141

rules/aws_iam_policy_hardcoded_partition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (r *AwsIamPolicyHardcodedPartitionRule) Name() string {
2929

3030
// Enabled returns whether the rule is enabled by default
3131
func (r *AwsIamPolicyHardcodedPartitionRule) Enabled() bool {
32-
return true
32+
return false
3333
}
3434

3535
// Severity returns the rule severity

rules/aws_iam_policy_hardcoded_region.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (r *AwsIamPolicyHardcodedRegionRule) Name() string {
2929

3030
// Enabled returns whether the rule is enabled by default
3131
func (r *AwsIamPolicyHardcodedRegionRule) Enabled() bool {
32-
return true
32+
return false
3333
}
3434

3535
// Severity returns the rule severity

rules/aws_iam_role_policy_hardcoded_partition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (r *AwsIamRolePolicyHardcodedPartitionRule) Name() string {
2929

3030
// Enabled returns whether the rule is enabled by default
3131
func (r *AwsIamRolePolicyHardcodedPartitionRule) Enabled() bool {
32-
return true
32+
return false
3333
}
3434

3535
// Severity returns the rule severity

rules/aws_iam_role_policy_hardcoded_region.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (r *AwsIamRolePolicyHardcodedRegionRule) Name() string {
2929

3030
// Enabled returns whether the rule is enabled by default
3131
func (r *AwsIamRolePolicyHardcodedRegionRule) Enabled() bool {
32-
return true
32+
return false
3333
}
3434

3535
// Severity returns the rule severity

rules/aws_provider_hardcoded_region.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (r *AwsProviderHardcodedRegionRule) Name() string {
2626

2727
// Enabled returns whether the rule is enabled by default
2828
func (r *AwsProviderHardcodedRegionRule) Enabled() bool {
29-
return true
29+
return false
3030
}
3131

3232
// Severity returns the rule severity

0 commit comments

Comments
 (0)