0
0
llucycodes42
The code in this block creates a remote state for the azure backend. The remote state is stored in the $MY_BACKEND variable and has the name terraform-state. The value of the key variable is prod.terraform.tfstate.
Shortcut: tf_azure_backend
data "terraform_remote_state" "${myBackend}" {
backend = "azure"
config {
storage_account_name = "terraform123abc"
container_name = "terraform-state"
key = "prod.terraform.tfstate"
}
}