In the following example enable_aggregate_limit
is of type: bool
. From what I understand it will render the parameter
argument with content
if its value is TRUE
and it does not create the parameter if its FALSE
.
What does the ["yes"]
and []
mean though in the ternary expression and what can I do to create the parameter when the value o enable_aggregate_limit
is FALSE
.
resource "aws_db_parameter_group" "main" {
name = local.name
family = var.custom_parameter_group_family
dynamic parameter {
for_each = var.enable_aggregate_limit ? ["yes"] : []
content {
name = "pga_aggregate_limit"
value = "0"
apply_method = "pending-reboot"
}
}