soniya.rayabagi
Mon Jul 15 2024
Handling Terraform State Errors with S3 Backend:
We use an S3 bucket to store our Terraform state. If Terraform fails to update the state, it creates an
To fix this, push the errored state back to S3:
#devops #terraformstateS3 #errorhandling
We use an S3 bucket to store our Terraform state. If Terraform fails to update the state, it creates an
errored.tfstate
file in your working directory. Reapplying will cause errors because the resources already exist.To fix this, push the errored state back to S3:
terraform state push errored.tfstate
#devops #terraformstateS3 #errorhandling