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
vault_pki_secret_backend_root_cert.nomad was deleted from Vault. Subsequent runs of terraform apply should refresh the state, detect the deletion, and re-create the root cert.
Terraform Version
0.14.2
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
vault_pki_secret_backend_root_cert.nomad
was deleted from Vault. Subsequent runs ofterraform apply
should refresh the state, detect the deletion, and re-create the root cert.Actual Behavior
The state is supposedly refreshed:
vault_pki_secret_backend_root_cert.nomad: Refreshing state... [id=nomad-ca/root/generate/internal]
But the deletion was not detected and the state value of
vault_pki_secret_backend_root_cert.nomad
remains as the deleted cert.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
on the HCL above to create the initial cert on a fresh Vault and a fresh Terraform (no existing state).terraform apply
on the HCL above to see the "actual behavior".References
I am not a Terraform provider expert, but I believe this could be because the "read" operation is not implemented on the resource:
https://github.com/hashicorp/terraform-provider-vault/blob/master/vault/resource_pki_secret_backend_root_cert.go#L287
The text was updated successfully, but these errors were encountered: