turbot / steampipe-plugin-terraform

Use SQL to instantly query resources, data sources and more from Terraform code. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/terraform
Apache License 2.0
28 stars 3 forks source link

Fixed plugin to correctly non-existent file paths in config file #67

Closed misraved closed 1 year ago

misraved commented 1 year ago

Integration test logs

Logs ``` Add passing integration test logs here ```

Example query results

Results ``` select * from terraform_resource +---------+----------------+--------+-------------------------------------------------------------------------------------------------------------------------------------------------------> | name | type | mode | arguments > +---------+----------------+--------+-------------------------------------------------------------------------------------------------------------------------------------------------------> | example | aws_ebs_volume | | {"availability_zone":"us-west-2a","final_snapshot":false,"multi_attach_enabled":null,"outpost_arn":null,"size":40,"tags":{"Name":"HelloWorld","_kics_l> +---------+----------------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------- ```
misraved commented 1 year ago

In this commit we skipped non-existent file paths specified in the config argument, as a result of which even if we had valid file paths, they got skipped as well.

This PR aims at fixing the issue by continuing to validate other file paths specified in the config argument skipping the non-existent ones.