Skip to content

Commit

Permalink
fix: default additionalconfig to empty string when not set
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Murray <darren.murray@lacework.net>
  • Loading branch information
dmurray-lacework committed Nov 30, 2023
1 parent defed1b commit fe6d6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ resource "aws_ssm_document" "setup_lacework_agent" {
AdditionalConfig = {
type = "String"
description = "Additional configuration parameters for the Lacework agent"
default = jsonencode(var.lacework_agent_configuration)
default = length(var.lacework_agent_configuration) == 0 ? "" : jsonencode(var.lacework_agent_configuration)
}
}

Expand Down

0 comments on commit fe6d6e9

Please sign in to comment.