Comments (5)
@cbruno10, If we are running in a directory that does not contain tfplan.json, the GetSourceFiles function returns the above error, which comes from SDK. Should we handle the error and return an empty row?
from steampipe-plugin-terraform.
@bigdatasourav Do we have this issue in general across other plugins, i.e., if a user provides an exact filename in any file path config arg, we receive an error instead of an empty row? I think returning empty rows instead of erroring if the file(s) do not exist is better behaviour.
from steampipe-plugin-terraform.
@cbruno10, we get this error in general across other plugins wherever we have used the GetSourceFiles function. I have handled the error and added a fix for Terraform in this PR.
from steampipe-plugin-terraform.
@bigdatasourav Do other plugins currently crash when providing an exact filename that doesn't exist?
from steampipe-plugin-terraform.
Yes, @cbruno10, the other plugins wherever we have used the GetSourceFiles function crash if the filename does not exist, as we never handled the error.
from steampipe-plugin-terraform.
Related Issues (20)
- support azurerm backend storage for tfstate files HOT 2
- Support recursive search for tfstate in s3 bucket?
- 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
- runtime error: invalid memory address when plan.json exists HOT 4
- Add `attributes` column to `terraform_resource` table
- *.tf.json terraform configure json format not supported. HOT 3
- 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.