Terraformer
Jump to navigation
Jump to search
# if all curl -LO https://github.com/GoogleCloudPlatform/terraformer/releases/download/0.8.24/terraformer-all-linux-amd64 curl -LO https://github.com/GoogleCloudPlatform/terraformer/releases/download/0.8.24/terraformer-azure-linux-amd64 chmod +x terraformer-azure-linux-amd64 sudo cp terraformer-azure-linux-amd64 /usr/local/bin/terraformer curl -LO https://releases.hashicorp.com/terraform-provider-azurerm/3.99.0/terraform-provider-azurerm_3.99.0_linux_amd64.zip unzip terraform-provider-azurerm_3.99.0_linux_amd64.zip cp terraform-provider-azurerm_v3.99.0_x5 /home/jebusk/.terraform.d/plugins/linux_amd64/terraform-provider-azure
init.tf
terraform { required_providers { azure = { source = "hashicorp/azurerm" } } required_version = ">= 0.13" }
terraform init
terraformer import azure -R testresourcegroup -r virtual_machine,network_security_group,storage_account