patrickchugh / terravision

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

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

Open ken-master opened 1 month ago

ken-master commented 1 month ago

I am getting the error below, when running terravision draw --source ~/projects/iac-terraform

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

I am using Azure,

transcript are:

 _____                          _     _
/__   \___ _ __ _ __ __ ___   _(_)___(_) ___  _ __
  / /\/ _ \ '__| '__/ _` \ \ / / / __| |/ _ \| '_ \
 / / |  __/ |  | | | (_| |\ 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

Checking Terraform Version...

Terraform v1.7.4

Initializing the backend...

Successfully configured the backend "azurerm"! Terraform will automatically
use this backend unless the backend configuration changes.

Initializing provider plugins...
- Finding hashicorp/random versions matching "3.6.0"...
- Finding hashicorp/azurerm versions matching "3.99.0"...
- Finding latest version of azure/azapi...
- Installing hashicorp/random v3.6.0...
- Installed hashicorp/random v3.6.0 (signed by HashiCorp)
- Installing hashicorp/azurerm v3.99.0...
- Installed hashicorp/azurerm v3.99.0 (signed by HashiCorp)
- Installing azure/azapi v1.13.1...
- Installed azure/azapi v1.13.1 (signed by a HashiCorp partner, key ID 6F0B91BDE98478CF)

Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html

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.

Initalising workspace: default

Generating Terraform Plan..

Acquiring state lock. This may take a few moments...

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the
following symbols:
  + create
 <= read (data resources)

Terraform will perform the following actions:

<TERRAFORM PLAN OUTPUT HERE>

Saved the plan to: /tmp/tfplan.bin

To perform exactly these actions, run the following command to apply:
    terraform apply "/tmp/tfplan.bin"
Releasing state lock. This may take a few moments...

Decoding plan..

Analysing plan..

Converting TF Graph Connections..  (this may take a while)

ERROR: No AWS, Azure or Google resources will be created with current plan. Exiting.
bschepke commented 1 month ago

It doesn't support Azure, yet. Only AWS.