Comments (5)
It's not dependent on any terraform version. Do you have a sample file I can use to replicate your issue?
from terrascan.
Thanks for the quick response. Attached is the TF and variables files (zipped) I attempted to run TerraScan against.
Are there any plans to integrate outputting results from Terrascan to another format such as HTML, TXT, etc?
tf.zip
from terrascan.
I'm seeing this as well with heredoc validation. Here's a toy example that repros:
data "template_file" "test" {
template = <<-EOF
this
is
a
multiline
string
EOF
}
resource "null_resource" "test" {
provisioner "local-exec" {
command = "echo '${data.template_file.test.rendered}'"
}
}
$ terrascan -l $(pwd) -t all
...
Line 16, column 0, index 232: EOF before closing heredoc
...
$ terraform validate
(exit 0)
$ terraform apply
null_resource.test: Creating...
null_resource.test: Provisioning with 'local-exec'...
null_resource.test (local-exec): Executing: ["/bin/sh" "-c" "echo ' this\n is\n a\n multiline\n string\n'"]
null_resource.test (local-exec): this
null_resource.test (local-exec): is
null_resource.test (local-exec): a
null_resource.test (local-exec): multiline
null_resource.test (local-exec): string
from terrascan.
This is a problem with PyHCL that was maybe* fixed in virtuald/pyhcl#37 (0.3.10), but since terraform-validate pins its PyHCL dependency to 0.3.9 it's not getting that fix.
I'll see what happens when I force terraform-validate to use PyHCL 0.3.10, and submit a PR there if it doesn't fix it. 0.3.10 fixes this problem. Submitting an issue to terraform_validate to update their dependency.
* By issue description, it should've been fixed in virtuald/pyhcl#32 (0.3.8), but that's clearly not the case.
from terrascan.
I've updated all dependencies to the latest. Hopefully this fixes these issues.
from terrascan.
Related Issues (20)
- validate error format_version HOT 1
- Allow Compile on FreeBSD HOT 1
- Error when using terraform cloud remote backend HOT 1
- error: failed to fetch latest version for terraform provider with v1.17.1 HOT 5
- AC_DOCKER_0041 Issues
- Also missing support for TF 1.3.0 optional() with second argument, the attribute default value. HOT 3
- False positive aws_s3_bucket_versioning when using conditionally created resources HOT 1
- AC_AZURE_0356 (subnets must have NSGs assigned) being triggered when using complex input types
- The scan result of AC_DOCKER_0047 HEALTHCHECK rule is not correct
- Can't parse Terraform variable field: `nullable` HOT 2
- Create Flux Integration
- Add Severity along with error title after publishing with junit-xml format
- When performing a tfplan scan the resource name is incomplete HOT 1
- JQ query error during scan when tfplan.json is more than 7Mo
- Support TF_TOKEN_* as source of HTTP auth token. HOT 2
- [Warning] Ensure :latest version is not used for Docker file (Terrascan Rule: AC_DOCKER_0041)
- Terrascan not supporting current versions of terraform format_version HOT 2
- False positive on "Ensure Pinned Pip Package Version" [AC_DOCKER_0010]
- False positive on "Ensure that Azure Virtual Network subnet is configured with a Network Security Group" [AC_AZURE_0356]
- Skip IaC Types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terrascan.