patrickchugh / terravision

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

Error Analysing plan (file name: tfplan.bin) #102

Open psdec-paul opened 5 months ago

psdec-paul commented 5 months ago

Hello

Sorry to bother you, especially as I doubt this is an issue with the code itself, but every time I attempt to run terravision draw, the following happens:

Preflight check completes Backend is initialised successfully Provider plugins are initialised successfully Plan is generated, showing 12 additions

It then presents the following:

Analysing plan..

ERROR: No AWS, Azure or Google resources will be created with current plan. Exiting.

I'm using Azure. I've also tried the example github links as sources, and have not been able to see a drawing.

As an aside, thanks for the hard work on this. It would be invaluable to me in my role!

Brownie2002 commented 4 months ago

Hello,

I have the same issue and unable to investigate. Do you have some recommendation to help you investigate ?

09:03 $ terravision draw --debug --source /tmp/tfwd --format png --simplified

 _____                          _     _             
/__   \___ _ __ _ __ __ ___   _(_)___(_) ___  _ __  
  / /\/ _ \ '__| '__/ _` \ \ / / / __| |/ _ \| '_ \ 
 / / |  __/ |  | | | (_| |\ V /| \__ \ | (_) | | | |
 \/   \___|_|  |_|  \__,_| \_/ |_|___/_|\___/|_| |_|

Preflight check..
  dot command detected: /usr/bin/dot
  gvpr command detected: /usr/bin/gvpr
  git command detected: /usr/bin/git
  terraform command detected: /usr/bin/terraform

Initializing the backend...
Initializing modules...
Downloading file:///workspaces/rpf-module for rpf...
- rpf in /tmp/tmpbo0h1uhi/modules/rpf

Initializing provider plugins...
- Reusing previous version of hashicorp/google from the dependency lock file
- Reusing previous version of hashicorp/local from the dependency lock file
- Reusing previous version of hashicorp/tls from the dependency lock file
- Reusing previous version of hashicorp/external from the dependency lock file
- Reusing previous version of hashicorp/template from the dependency lock file
- Installing hashicorp/google v5.5.0...
- Installed hashicorp/google v5.5.0 (unauthenticated)
- Installing hashicorp/local v2.4.0...
- Installed hashicorp/local v2.4.0 (unauthenticated)
- Installing hashicorp/tls v4.0.4...
- Installed hashicorp/tls v4.0.4 (unauthenticated)
- Installing hashicorp/external v2.3.1...
- Installed hashicorp/external v2.3.1 (unauthenticated)
- Installing hashicorp/template v2.2.0...
- Installed hashicorp/template v2.2.0 (unauthenticated)

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

Generating Terraform Plan..
[...]
Plan: 28 to add, 0 to change, 0 to destroy.

─────────────────────────

Saved the plan to: /tmp/tfplan.bin

To perform exactly these actions, run the following command to apply:
    terraform apply "/tmp/tfplan.bin"

Analysing plan..

ERROR: No AWS, Azure or Google resources will be created with current plan. Exiting.

Regards,

B.

margru commented 2 months ago

I'm using Google Cloud and getting the same result. My plan is empty as the infra is in sync with the sources.

EDIT: Ah, OK, I misread the README. It says: "It currently Supports AWS and soon Google and Azure cloud." So Google is not supported yet...