env.hcl 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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 = "prod"
  5. transit_gateway_account_name = "mdr-prod-c2" # Which account has the transit gateway
  6. environment_tags = {
  7. "Schedule" = "none",
  8. Environment = local.environment
  9. }
  10. proxy = "proxy.pvt.xdr.accenturefederalcyber.com"
  11. proxy_ip = "10.80.101.166"
  12. salt_master = "salt-master.pvt.xdr.accenturefederalcyber.com"
  13. salt_master_ip = "10.80.101.170"
  14. hec = "moose-hec.xdr.accenturefederalcyber.com"
  15. hec_pub = "moose-hec.xdr.accenturefederalcyber.com"
  16. hec_pub_ack = "moose-hec-ack.xdr.accenturefederalcyber.com"
  17. aws_waf_logs_hec_token = "FA38B8DD-1398-46D0-BD79-BA046C6064B0" # HEC token for posting WAF logs to the moose HEC
  18. # When there are multiples, put govcloud first, then commercial, and alternate if there are more than 2.
  19. # Put any standalone IPs at the end.
  20. cidr_map = {
  21. "vpc-splunk" = [ "10.40.16.0/22", # Splunk -- **MOOSE**
  22. "10.80.0.0/16", # legacy moose subnet
  23. ],
  24. "vpc-access" = [ "10.40.20.0/22", # VPN, bastions (if any), etc.
  25. "10.80.101.133/32", # legacy bastion
  26. "10.80.101.126/32", # legacy openvpn
  27. ],
  28. "vpc-public" = [ "10.40.24.0/22", # Public sites (github, ghe-backup, jira, ...)
  29. "10.80.101.250/32", # legacy jira
  30. "10.80.101.78/32", # legacy github
  31. ],
  32. "vpc-scanners" = [ "10.40.12.0/22",
  33. "10.80.1.44/32", # Legacy Qualys #1
  34. "10.80.1.103/32", # Legacy Qualys #2
  35. ], # Qualys, etc.
  36. "vpc-system-services" = [ "10.32.0.0/22", # Internal services such as dns, mailrelay, etc.
  37. "10.40.0.0/22",
  38. "10.80.101.230/32", # legacy sensu
  39. "10.80.101.170/32", # legacy salt master
  40. "10.80.101.166/32", # legacy proxy
  41. "10.80.101.197/32", # legacy repo
  42. "10.80.1.107/32", # legacy smtp
  43. ],
  44. "vpc-private-services" = [
  45. "10.40.28.0/22", # Private Services - fm-shared-search, qcompliance, phantom, etc.
  46. "10.80.101.221/32", # Phantom - legacy account production
  47. "10.80.0.0/16", # the whole legacy infra VPC, so the sync lambda can sync (this is temp)
  48. # (wes made me do it honest)
  49. ],
  50. # "old" mappings before architecture planning... we should eliminate these.
  51. "bastions" = [ "10.80.101.133/32", "10.40.20.0/22" ], # vpc-access in mdr-prod-c2-gov
  52. "vpns" = [ "10.80.101.126/32", "10.40.20.0/22" ], # vpc-access in mdr-prod-c2-gov
  53. "scanners" = [ "10.40.12.0/22" ], # vpc-qualys
  54. "dns" = [ "10.40.0.0/22", "10.32.0.0/22" ], # vpc-system-services in commercial nad gov
  55. "monitoring" = [ "10.80.101.230/32", "10.40.0.0/22" ], # legacy sensu, and vpc-system-services in gov
  56. "salt" = [ "10.80.101.170/32", "10.40.0.0/22" ], # legacy salt-master, and vpc-system-services in gov
  57. "web" = [ "10.80.101.166/32", "10.80.101.197/32", "10.40.0.0/22" ], # legacy proxy/repo, and vpc-system-services in gov
  58. "moose" = [ "10.80.0.0/16", "10.40.16.0/22" ], # legacy vpc, and vpc-system-services in gov
  59. }
  60. legacy_account = "477548533976"
  61. c2_accounts = {
  62. "aws-us-gov" = "721817724804" # mdr-prod-c2-gov
  63. "aws" = "045312110490" # mdr-prod-c2
  64. }
  65. dns_servers = [
  66. "10.40.2.77",
  67. "10.40.2.228"
  68. ]
  69. inbound_resolver_endpoints = [
  70. "10.40.0.198",
  71. "10.40.0.64",
  72. ]
  73. dns_info = {
  74. "private" = {
  75. zone = "pvt.xdr.accenturefederalcyber.com",
  76. zone_id = "Z08498911YSZW4A0XN4AG"
  77. }
  78. "reverse" = {
  79. zone = "10.in-addr.arpa"
  80. zone_id = "Z08395981DXDBY6CVJTW1"
  81. }
  82. "public" = {
  83. zone = "xdr.accenturefederalcyber.com"
  84. zone_id = "Z0083657A94URZM2TM87"
  85. },
  86. "legacy_private" = {
  87. zone = "msoc.defpoint.local"
  88. zone_id = "Z2JVOIKXZP64QP"
  89. },
  90. "legacy_public" = {
  91. zone = "mdr.defpoint.com"
  92. zone_id = "Z2HYR9YEZ4KLDE"
  93. },
  94. "legacy_public_internal" = {
  95. # Weird name, but this is the 'private' copy of the public domain
  96. zone = "mdr.defpoint.com"
  97. zone_id = "Z2RGT77XQU1QBX"
  98. },
  99. }
  100. aws_flowlogs_hec_token = "4a2cacb2-fea1-4328-8f25-9bef26333e91"
  101. # Legacy DNS
  102. dns_private = {
  103. "id" = "Z2JVOIKXZP64QP"
  104. "name" = "msoc.defpoint.local"
  105. }
  106. dns_private2 = {
  107. # There are many of these... future task to figure it out
  108. "id" = "Z2RGT77XQU1QBX"
  109. "name" = "mdr.defpoint.com"
  110. }
  111. dns_public = {
  112. "id" = "Z2HYR9YEZ4KLDE"
  113. "name" = "mdr.defpoint.com"
  114. }
  115. # Provide some legacy DNS entries so that systems we build
  116. # don't have to be rebuilt when we migrate the supporting systems.
  117. # Idea here is just to build entries for those systems we need during
  118. # the transition.
  119. #
  120. # When you migrate one of the systems below:
  121. # 1) Remove the entry from this list.
  122. # 2) Reapply the legacy-mdr-*/026-legacy-dns-entries module.
  123. # 3) Create a new entry in the module with which you're creating the new instance.
  124. legacy_private_dns = {
  125. #"moose-splunk-cm" = "10.80.101.77", # Needed for Universal Forwarder
  126. #"moose-splunk-sh" = "10.80.101.65", # Needed for xdr-inventory
  127. #"jira-server" = "10.80.101.250",
  128. #"mailrelay" = "10.80.1.107",
  129. #"openvpn" = "10.100.0.129",
  130. #"phantom" = "10.80.101.221",
  131. #"proxy" = "10.80.101.166",
  132. #"reposerver" = "10.80.101.197",
  133. #"sensu" = "10.80.101.230",
  134. #"splunk-mc" = "10.80.1.27",
  135. #"vault-1" = "10.80.1.134",
  136. #"vault-2" = "10.80.2.236",
  137. #"vault-3" = "10.80.3.61",
  138. "salt-master-legacy" = "10.80.101.170",
  139. }
  140. legacy_private_cname_dns = {
  141. #"iratemoses" = "internal-moose-internal-187462540.us-east-1.elb.amazonaws.com"
  142. }
  143. legacy_public_dns = {
  144. #"proxy" = "35.153.103.164",
  145. #"reposerver" = "18.234.16.205",
  146. "salt-master-legacy" = "52.5.165.105",
  147. #"sensu" = "52.6.95.246",
  148. }
  149. # cnames only
  150. legacy_public_cname_dns = {
  151. #"iratemoses" = "moose-external-1850541289.us-east-1.elb.amazonaws.com",
  152. #"portal" = "portal-alb-prod-1353134871.us-east-1.elb.amazonaws.com"
  153. }
  154. }