-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow conditional association with ALB
* Minimal changes to make ALB optional and the web acl exportable * Switch id to ARN due to confusing wafregional and wafv2 Co-authored-by: Alex Vincent <alex.vincent@geoplex.com.au>
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
locals { | ||
waf_outputs = coalescelist(aws_cloudformation_stack.waf.*.outputs, [{}])[0] | ||
} | ||
|
||
output waf_name { | ||
description = "The name of the created WAF Web ACL" | ||
value = lookup(local.waf_outputs, "WAFWebName", null) | ||
} | ||
|
||
output waf_arn { | ||
description = "The arn of the created WAF Web ACL" | ||
value = lookup(local.waf_outputs, "WAFWebArn", null) | ||
} |