Hi,
I have a variable type list with some defaults as shown below
variable "custom_parameters" {
type = list(object({
apply_method = string
name = string
value = string
}))
default = [
{ apply_method = "immediate", name = "log_connections", value = "1" },
{ apply_method = "immediate", name = "log_disconnections", value = "0" },
{ apply_method = "immediate", name = "log_lock_waits", value = "1" },
{ apply_method = "immediate", name = "log_hostname", value = "1" },
{ apply_method = "immediate", name = "log_temp_files", value = "0" },
]
description = "Parameters"
}
I would like to know how can I use the defaults but at the same time change one item from the list. Let's say I want to set log_temp_files to 1 as shown below but at the same time want to use all the other default items and values of the list in my terraform module
{ apply_method = "immediate", name = "log_temp_files", value = "1" },
Regards,
Mudasir Mirza.