Skip to content

Commit

Permalink
Update the tflint template for avm 0.5.0 and add new rules (#41)
Browse files Browse the repository at this point in the history
* Udate the tflint template for avm 0.5.0 and add new rules

* Remove duplicate

---------

Co-authored-by: Matt White <[email protected]>
  • Loading branch information
jaredfholgate and matt-FFFFFF authored May 14, 2024
1 parent 78e1b04 commit 07fe625
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 3 deletions.
56 changes: 54 additions & 2 deletions avm.tflint.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugin "terraform" {

plugin "avm" {
enabled = true
version = "0.3.1"
version = "0.5.0"
source = "github.com/Azure/tflint-ruleset-avm"
signing_key = <<-KEY
-----BEGIN PGP PUBLIC KEY BLOCK-----
Expand Down Expand Up @@ -136,6 +136,58 @@ rule "azurerm_resource_tag" {
enabled = true
}

# AVM Provider Rules

rule "tfnfr26" {
enabled = true
}
}

# AVM Module Rules

rule "required_module_source_tffr1" {
enabled = true
}

# AVM Output Rules

rule "required_output_rmfr7" {
enabled = true
}

rule "required_output_tffr2" {
enabled = true
}

# AVM Variable Interface Rules

rule "customer_managed_key" {
enabled = true
}

rule "diagnostic_settings" {
enabled = true
}

rule "location" {
enabled = true
}

rule "lock" {
enabled = true
}

rule "managed_identities" {
enabled = true
}

rule "private_endpoints" {
enabled = true
}

rule "role_assignments" {
enabled = true
}

rule "tags" {
enabled = true
}
50 changes: 49 additions & 1 deletion avm.tflint_example.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugin "terraform" {

plugin "avm" {
enabled = true
version = "0.3.1"
version = "0.5.0"
source = "github.com/Azure/tflint-ruleset-avm"
signing_key = <<-KEY
-----BEGIN PGP PUBLIC KEY BLOCK-----
Expand Down Expand Up @@ -135,10 +135,58 @@ rule "azurerm_resource_tag" {
enabled = false
}

# AVM Provider Rules

rule "tfnfr26" {
enabled = false
}

# AVM Module Rules

rule "required_module_source_tffr1" {
enabled = false
}

# AVM Output Rules

rule "required_output_rmfr7" {
enabled = false
}

rule "required_output_tffr2" {
enabled = false
}

# AVM Variable Interface Rules

rule "customer_managed_key" {
enabled = true
}

rule "diagnostic_settings" {
enabled = true
}

rule "location" {
enabled = true
}

rule "lock" {
enabled = true
}

rule "managed_identities" {
enabled = true
}

rule "private_endpoints" {
enabled = true
}

rule "role_assignments" {
enabled = true
}

rule "tags" {
enabled = true
}

0 comments on commit 07fe625

Please sign in to comment.