env.hcl 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. Environment = local.environment
  8. }
  9. proxy = "proxy.pvt.xdrtest.accenturefederalcyber.com"
  10. proxy_ip = "10.96.101.188"
  11. salt_master = "salt-master.pvt.xdrtest.accenturefederalcyber.com"
  12. salt_master_ip = "10.96.101.161"
  13. hec = "iratemoses.pvt.xdrtest.accenturefederalcyber.com"
  14. hec_pub = "moose-hec.mdr-test.defpoint.com"
  15. hec_pub_ack = "moose-hec-ack.mdr-test.defpoint.com"
  16. # Todo: Add CIDRs from new environment as they are assigned
  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. "bastions" = [ "10.96.101.218/32", "10.20.20.0/22" ], # vpc-access in mdr-test-c2-gov
  21. "vpns" = [ "10.96.101.249/32", "10.20.20.0/22" ], # vpc-access in mdr-test-c2-gov
  22. "scanners" = [ "10.20.12.0/22" ], # vpc-qualys
  23. "dns" = [ "10.20.0.0/22", "10.16.0.0/22" ], # vpc-system-services in commercial nad gov
  24. "monitoring" = [ "10.96.101.43/32", "10.20.0.0/22" ], # legacy sensu, and vpc-system-services in gov
  25. "salt" = [ "10.96.101.161/32", "10.20.0.0/22" ], # legacy salt-master, and vpc-system-services in gov
  26. "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
  27. "smtp" = [ "10.96.1.160/32", "10.20.0.0/22" ], # legacy relay, and vpc-system-services in gov
  28. "moose" = [ "10.96.0.0/16", "10.20.16.0/22" ], # legacy vpc and vpc-splunk in gov
  29. }
  30. legacy_account = "527700175026"
  31. c2_accounts = {
  32. "aws-us-gov" = "738800754746" # mdr-test-c2-gov
  33. "aws" = "816914342178" # mdr-test-c2
  34. }
  35. dns_servers = [
  36. "10.20.2.64",
  37. "10.16.2.123",
  38. ]
  39. inbound_resolver_endpoints = [
  40. "10.20.0.119",
  41. "10.20.0.211",
  42. ]
  43. dns_info = {
  44. "private" = {
  45. zone = "pvt.xdrtest.accenturefederalcyber.com",
  46. zone_id = "Z08514662ZGG8BM81TKD5"
  47. }
  48. "reverse" = {
  49. zone = "10.in-addr.arpa"
  50. zone_id = "Z08479312XJFUS20YJUJO"
  51. }
  52. "public" = {
  53. zone = "xdrtest.accenturefederalcyber.com"
  54. zone_id = "Z01677392W0QM639KU2KC"
  55. }
  56. }
  57. aws_flowlogs_hec_token = "4a2cacb2-fea1-4328-8f25-9bef26333e91"
  58. # Legacy DNS
  59. dns_private = {
  60. "id" = "Z39OIGEKXXGJZ2"
  61. "name" = "msoc.defpoint.local"
  62. }
  63. dns_private2 = {
  64. "id" = "Z13C1OOJMG0BJ7", #zone 2
  65. "name" = "mdr-test.defpoint.com"
  66. }
  67. dns_public = {
  68. "id" = "Z3E22S3CIP0UCO",
  69. "name" = "mdr-test.defpoint.com"
  70. }
  71. # Provide some legacy DNS entries so that systems we build
  72. # don't have to be rebuilt when we migrate the supporting systems.
  73. # Idea here is just to build entries for those systems we need during
  74. # the transition.
  75. #
  76. # When you migrate one of the systems below:
  77. # 1) Remove the entry from this list.
  78. # 2) Reapply the legacy-mdr-*/026-legacy-dns-entries module.
  79. # 3) Create a new entry in the module with which you're creating the new instance.
  80. legacy_private_dns = {
  81. #"moose-splunk-cm" = "10.96.101.87",
  82. #"moose-splunk-hf" = "10.96.101.75",
  83. "moose-splunk-sh" = "10.96.101.154", # needed for xdr-inventory
  84. #"clu" = "10.96.101.122",
  85. #"fm-shared-search" = "10.96.1.39",
  86. #"ghe-backup" = "10.96.101.71",
  87. "mailrelay" = "10.96.1.160",
  88. #"openvpn" = "10.96.101.249",
  89. #"phantom" = "10.96.101.186",
  90. #"proxy" = "10.96.101.188",
  91. #"reposerver" = "10.96.101.160",
  92. "sensu" = "10.96.101.43",
  93. #"splunk-mc" = "10.96.1.133",
  94. #"vault-1" = "10.96.1.38",
  95. #"vault-2" = "10.96.2.63",
  96. #"vault-3" = "10.96.3.88",
  97. "salt-master-legacy" = "10.96.101.161",
  98. }
  99. legacy_private_cname_dns = {
  100. "iratemoses" = "internal-moose-internal-1036948608.us-east-1.elb.amazonaws.com."
  101. }
  102. # not many public entries, as the use of saml negates their usefulness
  103. legacy_public_dns = {
  104. #"proxy" = "18.214.39.158",
  105. #"reposerver" = "34.202.16.40",
  106. "salt-master-legacy" = "18.233.43.236",
  107. "sensu" = "34.235.81.176"
  108. }
  109. # cnames only
  110. legacy_public_cname_dns = {
  111. "iratemoses" = "moose-external-1512880739.us-east-1.elb.amazonaws.com",
  112. "portal" = "portal-alb-test-868493124.us-east-1.elb.amazonaws.com"
  113. }
  114. }