I am using the terraform provider to manage my credential store. I have been using vault to store the token for this, I have the token set to renewable but have not wrapped my head around why it still disappears at some point but when I attempt to re apply with a new valid token by replacing the one in vault the terraform provider complains about a duplicate resource. I have attempted to use replace but still fails. Am I do this wrong?
resource "boundary_credential_store_vault" "vault" {
name = "Vault"
description = "Main Cred store from vault"
address = "https://active.vault.service.consul:8200"
token = data.vault_generic_secret.boundary_credstore_main.data["token"]
scope_id = boundary_scope.core_infra.id
}
terraform apply -replace=“boundary_credential_store_vault.vault[0]”