1 year ago

#350952

test-img

Subha_26

Get the .tf file from azure remote backend in terraform

I am trying the terraform operations using azure as remote backend. So far, I have been able to store the state remotely in azure. I am now unable to retrieve the state from remote, as I do not store the .tf files or .tfstate files locally. How to fetch the same from remote? This is the code I have:

terraform init -backend-config=config.backend.tfbackend
terraform state pull # fails due to no configuration file existing locally

This is my config.backend.tfbackend

 backend "azurerm" {
   resource_group_name      = "rg098"
   storage_account_name     = "tstate6565"
   container_name           = "tstate"
   key                      = "test5176"
 }

terraform

azure-rm

0 Answers

Your Answer

Accepted video resources