We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bf4830 commit 95dfb82Copy full SHA for 95dfb82
main.tf
@@ -47,5 +47,12 @@ resource "aws_cloudwatch_event_target" "target" {
47
}
48
49
locals {
50
- hook_urls = concat([nonsensitive(var.slack_hook_url)], nonsensitive(var.additional_slack_hook_urls))
+ hook_urls = concat([nonsensitive(var.slack_hook_url)], local.additional_slack_hook_urls)
51
+}
52
+
53
+# nonsensitive fails on empty list like this
54
+# Invalid value for "value" parameter: the given value is not sensitive, so this call is redundant.
55
+# thus have to do this
56
+locals {
57
+ additional_slack_hook_urls = length(var.additional_slack_hook_urls) != 0 ? nonsensitive(var.additional_slack_hook_urls) : var.additional_slack_hook_urls
58
0 commit comments