Comments (8)
Fixed in #36
from steampipe-plugin-terraform.
Hi @cmollet , thanks for raising this issue!
Are you seeing the arguments
column come through correctly for other tables? Are there any other columns in the terraform_module
table that aren't coming through correctly?
@rollwagen While developing the terraform_module
table, do you recall if there were any caveats to the arguments
column?
from steampipe-plugin-terraform.
Are you seeing the arguments column come through correctly for other tables?
Yes, the terraform_resource
table works as expected.
Are there any other columns in the terraform_module table that aren't coming through correctly?
Does not appear so, but I don't have many modules that use a lot of for_each
or depends_on
from steampipe-plugin-terraform.
@cmollet - thanks for bringing this up!
@cbruno10 / @cmollet - just had a look. In the PR for the terraform_module
we did have some discussion around arguments
and variables
, see #28 (comment)
However, the arguments
column wasn't added somehow (?).
Just tried adding the arguments
column in the code, in the same way as it was done here https://github.com/turbot/steampipe-plugin-terraform/blob/main/terraform/table_terraform_data_source.go#L97
The result for the query
SELECT name, split_part(path, '/', -1), arguments FROM terraform_module ORDER BY name;
using the sample terraform code
module "test" {
source = "../../../modules/lambda"
s3_bucket_name = var.aws_s3_name
publish = true
role_name_prefix = "role-"
owner = var.owner
}
would look like
+------+------------+----------------------------------------------------------------------------------------------------------+
| name | split_part | arguments |
+------+------------+----------------------------------------------------------------------------------------------------------+
| test | main.tf | {"owner":"${var.owner}","publish":true,"role_name_prefix":"role-","s3_bucket_name":"${var.aws_s3_name}"} |
+------+------------+----------------------------------------------------------------------------------------------------------+
Happy to do a PR if this output is what you'd expect.
from steampipe-plugin-terraform.
@cmollet Thanks for investigating! Yes, I think those results match what we'd expect, e.g., any non-meta arguments would be returned in arguments
.
If you have time, we'd love a PR, and if you need any help with it, please let us know!
from steampipe-plugin-terraform.
Thank you @rollwagen ! PR to fix would be great
from steampipe-plugin-terraform.
Thanks @rollwagen for the quick fix 👍.
from steampipe-plugin-terraform.
I can confirm it's fixed in 0.6.0
! Thanks for the fix @rollwagen !!
from steampipe-plugin-terraform.
Related Issues (20)
- support azurerm backend storage for tfstate files
- 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
- 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
- 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.