Azure Terraform Export Tool Stuck In Initializing
UdhavPawar opened this issue · 4 comments
Hello AZ TF export team, hope you're doing great! your tool is amazing and was working great, but now all of sudden it's stuck in initializing step forever.
I'm running a simple RG export command aztfexport resource-group --hcl-only "RG name"
. I tried and verified following:
- AZ CLI has vaid creds via
az login
and has access to that RG. - Used a fresh new empty directory.
- TF init works as expected when run manually.
- Also upgraded TF binary to latest version.
- Tool does try to init latest Azure provider.
Pls lmk is any additional input is required from my end, thank you.
admin@host:~/Downloads/temp/test-init$ aztfexport resource-group --hcl-only "en-qa-app-rg"
admin@host:~/Downloads/temp/test-init$ stuck in init so I exited
admin@host:~/Downloads/temp/test-init$
admin@host:~/Downloads/temp/test-init$ files generated by tool
admin@host:~/Downloads/temp/test-init$ ls -l
total 16
-rw-r--r-- 1 admin staff 40B May 21 11:05 provider.tf
-rw-r--r-- 1 admin staff 146B May 21 11:05 terraform.tf
admin@host:~/Downloads/temp/test-init$ cat provider.tf
provider "azurerm" {
features {
}
}
admin@host:~/Downloads/temp/test-init$ cat terraform.tf
terraform {
backend "local" {}
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.99.0"
}
}
}
Thanks for the issue, @UdhavPawar! Can you try running with --non-interactive
and see if the tool gets stuck in the same initialization process?
Thanks for the issue, @UdhavPawar! Can you try running with
--non-interactive
and see if the tool gets stuck in the same initialization process?
Thank you for the prompt response @stemaMSFT yes same issue.
@UdhavPawar Could you please enable the logs by adding --log-path /tmp/log.txt --log-level TRACE
options, and send the log file (i.e. /tmp/log.txt) here (with secrets redacted)?
update: think I figured out the issue, seems like I was rate limited by terraform lol (each run was fetching 100s of resources and I've been making calls since morning) ... took a break for few hours and it works now.
Thank you all for quick help, marking this as resolved.