Comments (4)
At first I thought it was var-related but evidently not.
provider "aws" {
region = "us-east-1"
}
resource "aws_s3_bucket" "my_bucket" {
bucket = "jon-test-project-foo-bucket-01"
}
> select path from terraform_resource
+-----------------------------------------------------------+
| path |
+-----------------------------------------------------------+
| /home/jon/terraform-examples/bucket.tf |
+-----------------------------------------------------------+
terraform plan -out=plan.tfplan
terraform show -json plan.tfplan > plan.json
> select path from terraform_resource
Error: runtime error: invalid memory address or nil pointer dereference (SQLSTATE HV000)
rm path.json
> select path from terraform_resource
+---------------------------------------------------+
| path |
+---------------------------------------------------+
| /home/jon/terraform-examples/bucket.tf |
+---------------------------------------------------+
from steampipe-plugin-terraform.
I was able to reproduce locally with both of these connection configs:
connection "terraform" {
plugin = "terraform"
plan_file_paths = ["tfplan.json"]
}
connection "terraform" {
plugin = "terraform"
plan_file_paths = ["*.tfplan.json"]
}
So it doesn't seem like the wildcard affects this particular bug (unlike #55).
from steampipe-plugin-terraform.
@bigdatasourav this didn't fix #54 :-(
The above examples still fail in the same way, and nuking plan.json is still the workaround.
My config:
configuration_file_paths = ["/home/jon/terraform-examples/*.tf"]
plan_file_paths = ["/home/jon/terraform-examples/p*.json"]
state_file_paths = ["/home/jon/terraform-examples/*.tfstate"]
from steampipe-plugin-terraform.
OK all good, I just had to use pkill -f steampipe in order to get the rebuilt branch to take effect. Thanks @bigdatasourav!
!
from steampipe-plugin-terraform.
Related Issues (20)
- support azurerm backend storage for tfstate files HOT 2
- Add table terraform_variable HOT 2
- Add table terraform_module HOT 6
- Add `source` and `end_line` column to relevant tables HOT 2
- Update `steampipe-plugin-sdk` to v5.0.0 HOT 1
- Add File Watcher support for `paths` argument in terraform config HOT 1
- Add information about go-getter support to `config/terraform.spc` example config file HOT 2
- Allow authentication via GitHub PAT when when working with private repositories HOT 9
- "arguments" column is always null in terraform_module table HOT 8
- Add support for parsing Terraform plans and pull them into existing tables HOT 2
- Add support to parse Terraform state files HOT 1
- Query/Control hangs when terraform_resource refers data from JSON file HOT 4
- Crash when using default connection config and running in a directory without `tfplan.json` HOT 5
- Add `attributes` column to `terraform_resource` table
- *.tf.json terraform configure json format not supported. HOT 3
- Querying the `terraform_local` table sometimes results in a conversion error HOT 1
- Plugin crashes with Error: rpc error: code = Unavailable desc = error reading from server: EOF (SQLSTATE HV000)
- Add table terraform_variable
- Table `terraform_resource` column `arguments` not showing field named `type`
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 steampipe-plugin-terraform.