security-groups.tf 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Several of these security groups will have customer IPs listed in them to allow
  2. # POP systems to access our services.
  3. #
  4. locals {
  5. # Qualys known CIDRs for scanners to call back to home
  6. # (in lieu of using the proxy at least for now)
  7. qualys_mgmt_cidrs = [
  8. "64.39.96.0/24"
  9. ]
  10. }
  11. module "qualys_scanner_sg" {
  12. use_name_prefix = false
  13. source = "terraform-aws-modules/security-group/aws"
  14. version = "~> 3"
  15. name = "qualys-scanner"
  16. tags = merge(var.standard_tags, var.tags)
  17. vpc_id = var.vpc_id
  18. egress_with_cidr_blocks = [
  19. #{
  20. # from_port = 443
  21. # to_port = 443
  22. # protocol = "TCP"
  23. # description = "Qualys Management Plane"
  24. # cidr_blocks = join(",",local.qualys_mgmt_cidrs)
  25. #},
  26. {
  27. from_port = -1
  28. to_port = -1
  29. protocol = "ALL"
  30. description = "Outbound for scanning things"
  31. cidr_blocks = "10.0.0.0/8"
  32. }
  33. ]
  34. ingress_with_cidr_blocks = [
  35. {
  36. from_port = -1
  37. to_port = -1
  38. protocol = "ICMP"
  39. description = "Permit all ICMP"
  40. cidr_blocks = "10.0.0.0/8"
  41. }
  42. ]
  43. }