You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
It would be great if you could issue a forced “refresh” at the top of the script, forcing the saved state to be deleted/ignored and recreated from the live environment.
Rationale:
Sometimes a terraform script fails, for whatever reason and you need to delete some assets manually (eg. in the Azure portal).
Being able to have the state forcefully refreshed would solve a lot of manual work.
Also, when using Terraform.io (Cloud), there is no way to run CLI commands so no refresh option. Sometimes you have to delete and recreate the workspace because the state is out of sync with reality and terraform consistently fails when running.
New or Affected Resource(s)
Terraform state
Potential Terraform Configuration
New command for scripts:
terraform_state_refresh
The text was updated successfully, but these errors were encountered:
Since this is a Feature Request for Terraform Core rather than being specific to the Azure Provider - would you mind re-opening this issue on that repository where someone from the Core team should be able to comment?
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Mar 29, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Description
It would be great if you could issue a forced “refresh” at the top of the script, forcing the saved state to be deleted/ignored and recreated from the live environment.
Rationale:
Sometimes a terraform script fails, for whatever reason and you need to delete some assets manually (eg. in the Azure portal).
Being able to have the state forcefully refreshed would solve a lot of manual work.
Also, when using Terraform.io (Cloud), there is no way to run CLI commands so no refresh option. Sometimes you have to delete and recreate the workspace because the state is out of sync with reality and terraform consistently fails when running.
New or Affected Resource(s)
Terraform state
Potential Terraform Configuration
New command for scripts:
terraform_state_refresh
The text was updated successfully, but these errors were encountered: