Closed aaron-trout closed 6 years ago
Sounds possibly maybe a little bit like #115? I'm not sure...
I've just encountered the same with just enabling the vault_auth_backend
for github
:
provider "vault" {
}
resource "vault_auth_backend" "github" {
type = "github"
}
Once applied first it creates the auth backend but fails to store anything on the state (terraform state show
is empty). On subsequent applies it fails to get created as it's already there.
Hello – can you let us know what version of Vault you're using? There was an issue with Vault v0.11.0 that caused issues for the Terraform Vault Provider, and was subsequently patched in Vault v0.11.1.
@catsby ooh, yes I am on 0.11.0. Will upgrade to .1 and get back to you!
Well, I completely forgot to reply here, but upgrading did indeed fix it! :-)
Hi,
Seeing an issue where Terraform is not recording the creation of the AWS secret backend in the terraform state, so subsequent
terraform apply
operations are failing because it tries to create the thing again but it already exists. Details below.Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Terraform state file (after first
terraform apply
)Debug Output
https://gist.github.com/aaron-trout/1c722c7c1a31dcd413f8820aac590b0d
Expected Behavior
terraform apply
creates the secret backend and records it in the state fileterraform plan
does not show any creationsActual Behavior
terraform apply
successfully creates the secret backend but does not record it in the terraform stateplan
orapply
operations show a creation / fail because the resource already existsSteps to Reproduce
terraform apply
twice