-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to update secret #84
Comments
Any update on the issue? |
Are there any developments regarding the issue? |
Any update on the issue? |
Appreciate if you could assist in this issue to get it resolved. |
Any update on the issue? |
Appreciate if you could assist in this issue to get it resolved. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unable to update secret
On trying to update secret, it fails with terraform resource tries create it instead of modifying it and fails with error.
Error: 400 Bad Request: {
│ "errorCode": "API_DuplicateSecretName",
│ "message": "A Secret with this name already exists."
│ }
│
│ with tss_resource_secret.secret_name,
│ in resource "tss_resource_secret" "secret_name":
│ 64: resource "tss_resource_secret" "secret_name" {
Expected behavior
Secret values should be updated.
Tell us what should happen
Actual behavior
Tell us what actually happens
Your environment
Tell us more about your environment; such as, What OS are you running? What version of pluginName are you using? Etc.
Windows Server 2019 Standard
DelineaXPM/terraform-provider-tss
Version: 2.0.8
Steps to reproduce
Tell us how to reproduce this issue. Please include code examples as necessary.
terraform {
required_providers {
tss = {
source = "DelineaXPM/tss"
version = "2.0.8"
}
}
}
variable "tss_username" {
type = string
default = "xxxxuser"
}
variable "tss_password" {
type = string
sensitive = true
}
variable "tss_server_url" {
type = string
default = "https://test.secretservercloud.com"
}
variable "tss_secret_name" {
type = string
default = "existingSecretName"
}
variable "tss_secret_siteid" {
type = string
default = "1"
}
variable "tss_secret_folderid" {
type = string
default = "1"
}
#Secret template type: Password
variable "tss_secret_templateid" {
type = string
default = "2"
}
variable "fields" {
type = list(object({
itemvalue = string
fieldname = string
}))
default = [
{
fieldname = "Notes"
itemvalue = "Test edit with TF Provider "
}
]
}
provider "tss" {
username = var.tss_username
password = var.tss_password
server_url = var.tss_server_url
}
resource "tss_resource_secret" "secret_name" {
name = var.tss_secret_name
folderid = var.tss_secret_folderid
siteid = var.tss_secret_siteid
secrettemplateid = var.tss_secret_templateid
active = true
dynamic "fields" {
for_each = var.fields
content {
fieldname = fields.value.fieldname
itemvalue = fields.value.itemvalue
}
}
}
Trace.txt
The text was updated successfully, but these errors were encountered: