Hi there,
I am facing an issue on apply where the state could not have pushed for some reason in Drone Server.
When this happens from my local machine, I just run the command specified at the end.
But how to do it when this happens from Drone Server ?
Does it make sense to create a dedicated step after the deployment to run terraform state push errored.tfstate ?
Any Idea ?
Thanks.
Failed to save state: failed to upload state: RequestError: send request failed
caused by: Put https://********.s3.eu-central-1.amazonaws.com/stag/us-east-1/infra/terraform.tfstate: dial tcp: lookup ********.s3.eu-central-1.amazonaws.com on 127.0.0.11:53: read udp 127.0.0.1:50397->127.0.0.11:53: i/o timeout
Error: Failed to persist state to backend.
The error shown above has prevented Terraform from writing the updated state
to the configured backend. To allow for recovery, the state has been written
to the file "errored.tfstate" in the current working directory.
Running "terraform apply" again at this point will create a forked state,
making it harder to recover.
To retry writing this state, use the following command:
terraform state push errored.tfstate
Hi there,
I am facing an issue on apply where the state could not have pushed for some reason in Drone Server.
When this happens from my local machine, I just run the command specified at the end.
But how to do it when this happens from Drone Server ?
Does it make sense to create a dedicated step after the deployment to run
terraform state push errored.tfstate?Any Idea ?
Thanks.