-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete Vault Provider Terraform code #427
Comments
You need to have different states per environment you're plan/applying. As for fixing your current situation, you can manually edit the state or use Terraform State Command Edit: If you have no resources in your state named |
Same here.
EDIT: Figured it out You need to go to your tfstate , search for vault resources, and delete them for aws , or from state itself , or from both ;) :
After all resources are removed, |
Closing stale issue |
Hi all
I'm testing Vault in my Azure test environment using terraform and it works great!!
I need to remove the vault code from my terraform code, but when I do a plan, terraform try to connect to Vault server but the code is commented because I don't want use vault in this environment. I only want to test the app to other clients, not for my test environment.
Acquiring state lock. This may take a few moments...
provider.vault.address
URL of the root of the target Vault server.
Enter a value:
Error: Error refreshing state: 1 error(s) occurred:
I have the code commented but I don't know if is this is sufficient
/*
provider "vault" {
address = "http://....129:8200"
skip_tls_verify = true
token = "s...Nz9J4U"
}
*/
How could I remove Vault from my terraform code and backend?
Thanks!!
The text was updated successfully, but these errors were encountered: