diff --git a/docs/Troubleshoot - Terraform module-repo-setup is tainted, so it must be replaced.md b/docs/Troubleshoot - Terraform module-repo-setup is tainted, so it must be replaced.md index 199e347..d5fce65 100644 --- a/docs/Troubleshoot - Terraform module-repo-setup is tainted, so it must be replaced.md +++ b/docs/Troubleshoot - Terraform module-repo-setup is tainted, so it must be replaced.md @@ -41,7 +41,17 @@ OpenTofu planned the following actions, but then encountered a problem: ╵ ``` -## Solution +## Solution 1 - state untaint + +The Repository is already created in Github and the Terraform state is not in sync with the actual state of the repository. + +This may occur if terraform apply was interrupted or failed while creating the repository. + +```bash +tofu untaint "module.github_repository[\"terraform-azurerm-avd\"].github_repository.repository" +``` + +## Solution 2 - remove and re-add