You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experimenting using this tool to implement static code analysis for Terraform in a CI/CD pipeline.
During my experiments, I have been having a lot of trouble getting my TF 13 modules to scan properly.
It seems as though Terrascan thinks variable validation is still an experimental feature, but it is GA in Terraform 13. Is Terrascan using my local terraform under the hood and possibly using the wrong path to the Terraform executable?
What I Did
Output of terrascan scan:
/path/to/my/module/variables.tf:20,3-13: Custom variable validation is experimental; This feature is currently an opt-in experiment, subject to change in future releases based on feedback.
Output of terrascan scan after adding the experimental block to my variables.tf file -
/path/to/my/module/variables.tf:2,18-37: Experimental feature "variable_validation" is active; Experimental features are subject to breaking changes in future minor or patch releases, based on feedback.
Block I added as a test
terraform {
experiments=[variable_validation]
}
The text was updated successfully, but these errors were encountered:
So I found the IAC version, but when I try to use v13, it says it isn't supported - documentation says Terraform 12+ is supported - when is Terraform 13 support coming?
Description
I am experimenting using this tool to implement static code analysis for Terraform in a CI/CD pipeline.
During my experiments, I have been having a lot of trouble getting my TF 13 modules to scan properly.
It seems as though Terrascan thinks variable validation is still an experimental feature, but it is GA in Terraform 13. Is Terrascan using my local terraform under the hood and possibly using the wrong path to the Terraform executable?
What I Did
Output of terrascan scan:
/path/to/my/module/variables.tf:20,3-13: Custom variable validation is experimental; This feature is currently an opt-in experiment, subject to change in future releases based on feedback.
Output of terrascan scan after adding the experimental block to my variables.tf file -
/path/to/my/module/variables.tf:2,18-37: Experimental feature "variable_validation" is active; Experimental features are subject to breaking changes in future minor or patch releases, based on feedback.
Block I added as a test
The text was updated successfully, but these errors were encountered: