Skip to content

Commit

Permalink
Add v13 flag option for terraform iac
Browse files Browse the repository at this point in the history
  • Loading branch information
Devang Gaur authored and Cesar Rodriguez committed Jan 19, 2021
1 parent 91790db commit 6da5e88
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/iac-providers/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ import (

// terraform specific constants
const (
terraform supportedIacType = "terraform"
terraformV14 supportedIacVersion = "v14"
terraformV12 supportedIacVersion = "v12"

terraformDefaultVersion = terraformV12
terraform supportedIacType = "terraform"
terraformV12 supportedIacVersion = "v12"
terraformV13 supportedIacVersion = "v13"
terraformV14 supportedIacVersion = "v14"
terraformDefaultVersion = terraformV12
)

// register terraform as an IaC provider with terrascan
func init() {
// register iac provider
RegisterIacProvider(terraform, terraformV12, terraformDefaultVersion, reflect.TypeOf(tfv12.TfV12{}))
RegisterIacProvider(terraform, terraformV13, terraformDefaultVersion, reflect.TypeOf(tfv14.TfV14{}))
RegisterIacProvider(terraform, terraformV14, terraformDefaultVersion, reflect.TypeOf(tfv14.TfV14{}))
}

0 comments on commit 6da5e88

Please sign in to comment.