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 the Error: tfstate: runtime error: index out of range [0] with length 0 Closes #105 #109

Open ParthaI opened 1 month ago

ParthaI commented 1 month ago

Integration test logs

Logs ``` N/A ```

Example query results

Results ``` > select * from tf_bucket.terraform_resource +---------------------+------------------------+---------+--------------------------------------------+-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | name | type | mode | address | arguments | attributes > +---------------------+------------------------+---------+--------------------------------------------+-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | alternate | aws_region | data | aws_region.alternate | {"type":"aws_region"} | {"description":"US East (Ohio)","endpoint":"ec2.us-east-2.amazonaws.com","id":"us-east-2","name":"us-east-2"} > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | | | | | | > | named_test_resource | google_compute_network | managed | google_compute_network.named_test_resource | {"type":"google_compute_network"} | {"auto_create_subnetworks":false,"delete_default_routes_on_create":false,"description":"Test network to validate integration test.","enable_ula_internal_ipv6":false,"gateway_> | | | | | | > | | | | | | > | | | | | | ```