patrickchugh / terravision

Terravision creates Professional Cloud Architecture Diagrams from your Terraform code automatically. Supports AWS, Google and Azure.
Mozilla Public License 2.0
768 stars 77 forks source link

Unhandled error: <class 'IndexError'>, list index out of range, <traceback object at 0x7fb55d6a3240> #95

Open SandipKumar05 opened 9 months ago

SandipKumar05 commented 9 months ago

I am getting issues while running this with my Terraform.

Checking for additional links between 48 resources..
   aws_subnet.private~1 --> aws_db_subnet_group.database-subnet-group
   aws_subnet.private~2 --> aws_db_subnet_group.database-subnet-group
   aws_subnet.public~1 --> aws_instance.bastion
   aws_subnet.public~2 --> aws_instance.bastion
   aws_subnet.private~1 --> aws_launch_template.api-launch-template
   aws_subnet.private~2 --> aws_launch_template.api-launch-template
   aws_subnet.private~1 --> aws_launch_template.web-launch-template
   aws_subnet.private~2 --> aws_launch_template.web-launch-template
   aws_subnet.public~1 --> aws_lb.application-load-balancer
   aws_subnet.public~2 --> aws_lb.application-load-balancer
   aws_vpc.this~1 --> aws_lb_target_group.api_target_group
   aws_vpc.this~1 --> aws_lb_target_group.web_target_group
   aws_vpc.this~1 --> aws_internet_gateway.this~1
   aws_nat_gateway.this~1 --> aws_eip.nat~1
   aws_nat_gateway.this~1 --> aws_internet_gateway.this~1
   aws_vpc.this~1 --> aws_route_table.private~1
   aws_vpc.this~1 --> aws_route_table.public~1
   aws_subnet.private~1 --> aws_route_table_association.private~1
   aws_route_table_association.private~1 --> aws_route_table.private~1
   aws_subnet.private~2 --> aws_route_table_association.private~2
   aws_subnet.public~1 --> aws_route_table_association.public~1
   aws_route_table_association.public~1 --> aws_route_table.public~1
   aws_subnet.public~2 --> aws_route_table_association.public~2
   aws_vpc.this~1 --> aws_subnet.private~1
   aws_vpc.this~1 --> aws_subnet.public~1
Unhandled error: <class 'IndexError'>, list index out of range, <traceback object at 0x7fb55d6a3240>

Vesion: aws-cli/2.15.2 Python/3.11.6 Linux/5.15.0-91-generic exe/x86_64.linuxmint.21 Terraform: v1.6.6

patrickchugh commented 9 months ago

Hi @SandipKumar05 Can you share the source Terraform so I can try to re-produce? Also, please add the --debug flag for terravision so it will show more error details. Please also ensure you are using latest code on main branch.