env.hcl 6.1 KB

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