Hi everyone, I try to deploy terraform code via Azure devops pipeline.
Deploy runs fine however destroy doesn’t work. Code is in github which is authenticated via pipeline.
The backend is configured as follow:
terraform {
backend “azurerm” {
resource_group_name = “XXXXXXXXXXX”
storage_account_name = “XXXXXXXXXXX”
container_name = “XXXXXXXX”
key = “XXXXXXXXXXXX”
}
}
Deploy is fine but because of error message of the state file I’d to put these command options in terraform init:
-lock=false -force-copy
The same I am applying in terraform destroy and then there’s a message there is nothing to destroy…
The terraform state file is visible inside the container.
How to troubelshoot/solve?