-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem description
I want to update the description for the secrets-manager user but terraform wants to replace whole resource (leads into new username + password) instand of only updating this attribute.
Proposed solution
The resource should be updated in-place.
-/+ destroy and then create replacement
Terraform will perform the following actions:
# module.stackit.stackit_secretsmanager_user.dns["dns-api-prd"] must be replaced
-/+ resource "stackit_secretsmanager_user" "dns" {
~ description = "User for dns-api-prd" -> "The description for my user" # forces replacement
~ id = "xxxxxxxxxxx,xxxxxxxxxx" -> (known after apply)
~ password = (sensitive value)
~ user_id = "xxxxxxxxxxx" -> (known after apply)
~ username = "smxxxxxxxxxxxxx" -> (known after apply)
# (3 unchanged attributes hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
Alternative solutions (optional)
Additional information
According API-Endpoint to be used for the inplace update: https://docs.api.stackit.cloud/documentation/secrets-manager/version/v1#tag/users/paths/~1v1~1projects~1%7BprojectId%7D~1instances~1%7BinstanceId%7D~1users~1%7BuserId%7D/put
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request