Repository navigation
Replies: 3 comments 2 replies
terraform init
terraform validateTerraform init failed: In the rare case that an invalid module or multiple files is part of the issue, you can indicate that this is expected with a 👍 on this comment |
|
I haven't realized that by terraform configuration you meant terraform code. I don't think it's an issue here,since most of the time code is validated successfully and I can validate it locally. It's a root module that invokes https://github.com/terraform-aws-modules/terraform-aws-vpc |
|
The fix maybe as simple as adding in tflint-plugin-sdk ? |
Uh oh!
There was an error while loading. Please reload this page.
Summary
We running tflint with aws plugin in gitlab jobs. We observe sporadic failures of tflint, where many jobs are created, so cluster is under heavy load. I added TFLINT_LOG: "debug" and experimented with multiple options, but none helped to solve the issue:
PLUGIN_UNIX_SOCKET_DIR: "/dev/shm"
GOMAXPROCS: "2"
TF_LINT_ARGS: "--no-parallel-runners"
There seems to be exact 5 seconds before timeout and I wasn't able to find how to change it.
Command
tflint --chdir=tf/ --no-parallel-runners
Terraform Configuration
TFLint Configuration
Output
TFLint Version
0.62.1
Terraform Version
1.15.5
Operating System
All reactions