env.hcl 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # Set common variables for the environment. This is automatically pulled in in the root terragrunt.hcl configuration to
  2. # feed forward to the child modules.
  3. locals {
  4. environment = "test"
  5. transit_gateway_account_name = "mdr-test-c2" # Which account has the transit gateway
  6. environment_tags = {
  7. "Schedule" = "MSOC",
  8. Environment = local.environment
  9. }
  10. proxy = "proxy.pvt.xdrtest.accenturefederalcyber.com"
  11. proxy_ip = "10.20.2.22"
  12. salt_master = "salt-master.pvt.xdrtest.accenturefederalcyber.com"
  13. salt_master_ip = "10.20.2.32"
  14. hec = "moose-hec.xdrtest.accenturefederalcyber.com"
  15. hec_pub = "moose-hec.xdrtest.accenturefederalcyber.com"
  16. hec_pub_ack = "moose-hec-ack.xdrtest.accenturefederalcyber.com"
  17. aws_waf_logs_hec_token = "FA38B8DD-1398-46D0-BD79-BA046C6064B0" # HEC token for posting WAF logs to the moose HEC
  18. # Supernet(s) for the environment, see IP Address Allocation in wiki
  19. supernets = [
  20. "10.1.0.0/16", # Common Services (gov and commercial) supernet
  21. "10.16.0.0/12", # Test (gov and commercial) supernet
  22. ]
  23. # When there are multiples, put govcloud first, then commercial, and alternate if there are more than 2.
  24. # Put any standalone IPs at the end.
  25. cidr_map = {
  26. # See infrastructure_notes/Architecture_Notes.md and https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation for more information
  27. "vpc-splunk" = [ "10.20.16.0/22", # Splunk -- **MOOSE**
  28. ],
  29. "vpc-access" = [ "10.20.20.0/22", # VPN, bastions (if any), etc.
  30. ],
  31. "vpc-public" = [ "10.20.24.0/22", # Public sites (github, ghe-backup, jira, ...)
  32. ],
  33. "vpc-scanners" = [ "10.20.12.0/22" ], # Qualys, etc.
  34. "vpc-system-services" = [ "10.16.0.0/22", # Internal services such as dns, mailrelay, etc.
  35. "10.20.0.0/22",
  36. ],
  37. "vpc-private-services" = [ "10.20.28.0/22", # Private Services - fm-shared-search, qcompliance, phantom, etc.
  38. ],
  39. # "old" mappings before architecture planning... we should eliminate these.
  40. "bastions" = [ "10.20.20.0/22" ], # vpc-access in mdr-test-c2-gov
  41. "vpns" = [ "10.20.20.0/22" ], # vpc-access in mdr-test-c2-gov
  42. "scanners" = [ "10.20.12.0/22" ], # vpc-qualys
  43. "dns" = [ "10.20.0.0/22", "10.16.0.0/22" ], # vpc-system-services in commercial nad gov
  44. "monitoring" = [ "10.20.0.0/22" ], # legacy sensu, and vpc-system-services in gov
  45. "salt" = [ "10.20.0.0/22" ], # legacy salt-master, and vpc-system-services in gov
  46. "web" = [ "10.20.0.0/22" ], # legacy proxy/repo, and vpc-system-services in gov
  47. "moose" = [ "10.20.16.0/22" ], # legacy vpc and vpc-splunk in gov
  48. }
  49. legacy_account = "527700175026"
  50. c2_accounts = {
  51. "aws-us-gov" = "738800754746" # mdr-test-c2-gov
  52. "aws" = "816914342178" # mdr-test-c2
  53. }
  54. dns_servers = [
  55. "10.20.2.64",
  56. "10.20.2.185",
  57. ]
  58. inbound_resolver_endpoints = [
  59. "10.20.0.119",
  60. "10.20.0.211",
  61. ]
  62. dns_info = {
  63. "private" = {
  64. zone = "pvt.xdrtest.accenturefederalcyber.com",
  65. zone_id = "Z08514662ZGG8BM81TKD5"
  66. }
  67. "reverse" = {
  68. zone = "10.in-addr.arpa"
  69. zone_id = "Z08479312XJFUS20YJUJO"
  70. }
  71. "public" = {
  72. zone = "xdrtest.accenturefederalcyber.com"
  73. zone_id = "Z01677392W0QM639KU2KC"
  74. },
  75. "legacy_private" = {
  76. zone = "msoc.defpoint.local"
  77. zone_id = "Z39OIGEKXXGJZ2"
  78. },
  79. "legacy_public" = {
  80. zone = "mdr-test.defpoint.com"
  81. zone_id = "Z3E22S3CIP0UCO"
  82. },
  83. "legacy_public_internal" = {
  84. # Weird name, but this is the 'private' copy of the public domain
  85. zone = "mdr-test.defpoint.com"
  86. zone_id = "Z13C1OOJMG0BJ7"
  87. },
  88. }
  89. aws_flowlogs_hec_token = "4a2cacb2-fea1-4328-8f25-9bef26333e91"
  90. # Legacy DNS
  91. dns_private = {
  92. "id" = "Z39OIGEKXXGJZ2"
  93. "name" = "msoc.defpoint.local"
  94. }
  95. dns_private2 = {
  96. "id" = "Z13C1OOJMG0BJ7", #zone 2
  97. "name" = "mdr-test.defpoint.com"
  98. }
  99. dns_public = {
  100. "id" = "Z3E22S3CIP0UCO",
  101. "name" = "mdr-test.defpoint.com"
  102. }
  103. }