Closed anarsen closed 2 months ago
Hi, i reached same problem, is there any update on that?
same here, I had to separate the state of vault_ldap_auth_backend to another workspace
Do you have any news? Or reinvent crutches again?
@nanalncux Hello, what version of the Vault Provider are you using? I believe this should be fixed as of v4.0.0
I confirm it has not been fixed. I'm using Vault provider in version v4.3.0 and I was getting the following error:
No secret engine mount at auth/ldap/
To workaround this I removed ldap
engine configuration from the state file and rerun the terraform plan and apply.
Fixed by https://github.com/hashicorp/terraform-provider-vault/pull/2289 and will be available in the next release (v4.4.0)
Terraform Version
Affected Resource(s)
vault_ldap_auth_backend
Terraform Configuration Files
Debug Output
https://gist.github.com/anarsen/00e8c1fdafa820d5bcfceff80da5c48c
Expected Behavior
Terraform would realize the
vault_ldap_auth_backend
doesn't exist during the refresh phase, and produce a plan to create it.Actual Behavior
Errors out with this message
I assume this is the offending code: https://github.com/hashicorp/terraform-provider-vault/blob/main/vault/resource_ldap_auth_backend.go#L346
Steps to Reproduce
vault server -dev
terraform apply
vault server -dev
terraform apply
orterraform refresh