diff --git a/.changelog/1157.txt b/.changelog/1157.txt new file mode 100644 index 000000000..786460e4b --- /dev/null +++ b/.changelog/1157.txt @@ -0,0 +1,3 @@ +```release-note:bug +Fix a bug when updating HVS secret name +``` diff --git a/internal/provider/vaultsecrets/resource_vault_secrets_secret.go b/internal/provider/vaultsecrets/resource_vault_secrets_secret.go index cea6f4736..4988f9442 100644 --- a/internal/provider/vaultsecrets/resource_vault_secrets_secret.go +++ b/internal/provider/vaultsecrets/resource_vault_secrets_secret.go @@ -76,6 +76,9 @@ func (r *resourceVaultsecretsSecret) Schema(_ context.Context, _ resource.Schema "must contain only ASCII letters, numbers, and underscores; must not start with a number", ), }, + PlanModifiers: []planmodifier.String{ + stringplanmodifier.RequiresReplace(), + }, }, "secret_value": schema.StringAttribute{ Description: "The value of the secret",