env.hcl 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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.96.101.188"
  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. "10.96.100.0/22", # legacy moose subnet
  29. ],
  30. "vpc-access" = [ "10.20.20.0/22", # VPN, bastions (if any), etc.
  31. "10.96.101.218/32", # legacy bastion
  32. "10.96.101.249/32", # legacy openvpn
  33. ],
  34. "vpc-public" = [ "10.20.24.0/22", # Public sites (github, ghe-backup, jira, ...)
  35. "10.96.101.193/32", # legacy jira
  36. "10.96.101.217/32", # legacy github
  37. ],
  38. "vpc-scanners" = [ "10.20.12.0/22" ], # Qualys, etc.
  39. "vpc-system-services" = [ "10.16.0.0/22", # Internal services such as dns, mailrelay, etc.
  40. "10.20.0.0/22",
  41. "10.96.101.43/32", # legacy sensu
  42. "10.96.101.161/32", # legacy salt master
  43. "10.96.101.188/32", # legacy proxy
  44. "10.96.101.160/32", # legacy repo
  45. "10.96.1.160/32", # legacy smtp
  46. ],
  47. "vpc-private-services" = [ "10.20.28.0/22", # Private Services - fm-shared-search, qcompliance, phantom, etc.
  48. "10.96.101.221/32", # Phantom - legacy account production
  49. "10.96.0.0/16", # the whole legacy infra VPC, so the sync lambda can sync (this is temp)
  50. # (wes made me do it honest)
  51. ],
  52. # "old" mappings before architecture planning... we should eliminate these.
  53. "bastions" = [ "10.96.101.218/32", "10.20.20.0/22" ], # vpc-access in mdr-test-c2-gov
  54. "vpns" = [ "10.96.101.249/32", "10.20.20.0/22" ], # vpc-access in mdr-test-c2-gov
  55. "scanners" = [ "10.20.12.0/22" ], # vpc-qualys
  56. "dns" = [ "10.20.0.0/22", "10.16.0.0/22" ], # vpc-system-services in commercial nad gov
  57. "monitoring" = [ "10.96.101.43/32", "10.20.0.0/22" ], # legacy sensu, and vpc-system-services in gov
  58. "salt" = [ "10.96.101.161/32", "10.20.0.0/22" ], # legacy salt-master, and vpc-system-services in gov
  59. "web" = [ "10.96.101.188/32", "10.96.101.160/32", "10.20.0.0/22" ], # legacy proxy/repo, and vpc-system-services in gov
  60. "moose" = [ "10.96.0.0/16", "10.20.16.0/22" ], # legacy vpc and vpc-splunk in gov
  61. }
  62. legacy_account = "527700175026"
  63. c2_accounts = {
  64. "aws-us-gov" = "738800754746" # mdr-test-c2-gov
  65. "aws" = "816914342178" # mdr-test-c2
  66. }
  67. dns_servers = [
  68. "10.20.2.64",
  69. "10.20.2.185",
  70. ]
  71. inbound_resolver_endpoints = [
  72. "10.20.0.119",
  73. "10.20.0.211",
  74. ]
  75. dns_info = {
  76. "private" = {
  77. zone = "pvt.xdrtest.accenturefederalcyber.com",
  78. zone_id = "Z08514662ZGG8BM81TKD5"
  79. }
  80. "reverse" = {
  81. zone = "10.in-addr.arpa"
  82. zone_id = "Z08479312XJFUS20YJUJO"
  83. }
  84. "public" = {
  85. zone = "xdrtest.accenturefederalcyber.com"
  86. zone_id = "Z01677392W0QM639KU2KC"
  87. },
  88. "legacy_private" = {
  89. zone = "msoc.defpoint.local"
  90. zone_id = "Z39OIGEKXXGJZ2"
  91. },
  92. "legacy_public" = {
  93. zone = "mdr-test.defpoint.com"
  94. zone_id = "Z3E22S3CIP0UCO"
  95. },
  96. "legacy_public_internal" = {
  97. # Weird name, but this is the 'private' copy of the public domain
  98. zone = "mdr-test.defpoint.com"
  99. zone_id = "Z13C1OOJMG0BJ7"
  100. },
  101. }
  102. aws_flowlogs_hec_token = "4a2cacb2-fea1-4328-8f25-9bef26333e91"
  103. # Legacy DNS
  104. dns_private = {
  105. "id" = "Z39OIGEKXXGJZ2"
  106. "name" = "msoc.defpoint.local"
  107. }
  108. dns_private2 = {
  109. "id" = "Z13C1OOJMG0BJ7", #zone 2
  110. "name" = "mdr-test.defpoint.com"
  111. }
  112. dns_public = {
  113. "id" = "Z3E22S3CIP0UCO",
  114. "name" = "mdr-test.defpoint.com"
  115. }
  116. # Provide some legacy DNS entries so that systems we build
  117. # don't have to be rebuilt when we migrate the supporting systems.
  118. # Idea here is just to build entries for those systems we need during
  119. # the transition.
  120. #
  121. # When you migrate one of the systems below:
  122. # 1) Remove the entry from this list.
  123. # 2) Reapply the legacy-mdr-*/026-legacy-dns-entries module.
  124. # 3) Create a new entry in the module with which you're creating the new instance.
  125. legacy_private_dns = {
  126. #"moose-splunk-cm" = "10.96.101.87",
  127. #"moose-splunk-hf" = "10.96.101.75",
  128. #"moose-splunk-sh" = "10.96.101.154", # needed for xdr-inventory
  129. #"clu" = "10.96.101.122",
  130. #"fm-shared-search" = "10.96.1.39",
  131. #"ghe-backup" = "10.96.101.71",
  132. #"mailrelay" = "10.96.1.160",
  133. #"openvpn" = "10.96.101.249",
  134. #"phantom" = "10.96.101.186",
  135. #"proxy" = "10.96.101.188",
  136. #"reposerver" = "10.96.101.160",
  137. #"sensu" = "10.96.101.43",
  138. #"splunk-mc" = "10.96.1.133",
  139. #"vault-1" = "10.96.1.38",
  140. #"vault-2" = "10.96.2.63",
  141. #"vault-3" = "10.96.3.88",
  142. "salt-master-legacy" = "10.96.101.161",
  143. }
  144. legacy_private_cname_dns = {
  145. #"iratemoses" = "internal-iratemoses-435580743.us-gov-east-1.elb.amazonaws.com",
  146. }
  147. # not many public entries, as the use of saml negates their usefulness
  148. legacy_public_dns = {
  149. #"proxy" = "18.214.39.158",
  150. #"reposerver" = "34.202.16.40",
  151. "salt-master-legacy" = "18.233.43.236",
  152. #"sensu" = "34.235.81.176"
  153. }
  154. # cnames only
  155. legacy_public_cname_dns = {
  156. #"iratemoses" = "moose-legacy-hec-1138113830.us-gov-east-1.elb.amazonaws.com",
  157. #"portal" = "portal-alb-test-868493124.us-east-1.elb.amazonaws.com"
  158. }
  159. }