Skip to content

Commit 9ee4d00

Browse files
authored
fix: Fixed CodeDeploy hooks (claranet#76)
1 parent dc6d248 commit 9ee4d00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/deploy/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ locals {
2525
Hooks = [for k, v in zipmap(["BeforeAllowTraffic", "AfterAllowTraffic"], [
2626
var.before_allow_traffic_hook_arn != "" ? var.before_allow_traffic_hook_arn : null,
2727
var.after_allow_traffic_hook_arn != "" ? var.after_allow_traffic_hook_arn : null
28-
]) : map(k, v)]
28+
]) : map(k, v) if v != null]
2929
} : {})
3030

3131
appspec_content = replace(jsonencode(local.appspec), "\"", "\\\"")

0 commit comments

Comments
 (0)