env.hcl 5.8 KB

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