waf.tf 711 B

12345678910111213141516
  1. module "waf" {
  2. source = "../../submodules/wafv2"
  3. # Custom to resource
  4. allowed_ips = [ ] # bypasses filters, so should not be needed/used unless warranted. We previously did var.admin_remote_ipset, but that seems like a bad idea
  5. additional_blocked_ips = [ ] # NOTE: There is a standard list in the submodule
  6. admin_ips = concat(var.zscalar_ips, var.admin_ips)
  7. resource_arn = aws_alb.portal.arn
  8. fqdns = keys(module.public_dns_record.forward) # first entry in list will be the WAF name
  9. # These are passed through and should be the same for module
  10. tags = merge(var.standard_tags, var.tags)
  11. aws_partition = var.aws_partition
  12. aws_region = var.aws_region
  13. aws_account_id = var.aws_account_id
  14. }