steampipe-plugin-terraform icon indicating copy to clipboard operation
steampipe-plugin-terraform copied to clipboard

Fixed the Error: tfstate: runtime error: index out of range [0] with length 0 Closes #105

Open ParthaI opened this issue 5 months ago • 0 comments

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_>
|                     |                        |         |                                            |                                   |                                                                                                                                                                               >
|                     |                        |         |                                            |                                   |                                                                                                                                                                               >
|                     |                        |         |                                            |                                   |                                                                                                                                                                            

ParthaI avatar Sep 10 '24 11:09 ParthaI