env.hcl 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. Environment = local.environment
  8. }
  9. proxy = "proxy.msoc.defpoint.local"
  10. proxy_ip = "10.80.101.166"
  11. salt_master = "salt-master.msoc.defpoint.local"
  12. salt_master_ip = "10.80.101.170"
  13. hec = "iratemoses.pvt.xdr.accenturefederalcyber.com"
  14. hec_pub = "iratemoses.mdr.defpoint.com"
  15. # Todo: Add CIDRs from new environment as they are assigned
  16. # When there are multiples, put govcloud first, then commercial, and alternate if there are more than 2.
  17. # Put any standalone IPs at the end.
  18. cidr_map = {
  19. "bastions" = [ "10.80.101.133/32" ],
  20. "vpns" = [ "10.80.101.126/32" ],
  21. "scanners" = [ "10.40.12.0/22" ],
  22. "dns" = [ "10.40.0.0/22", "10.32.0.0/22" ], # DNS is in standard
  23. "monitoring" = [ "10.80.101.230/32" ],
  24. "salt" = [ "10.80.101.170/32" ],
  25. "web" = [ "10.80.101.166/32", "10.80.101.197/32" ], # Things systems need http/https access to, such as the proxy and the repo
  26. "smtp" = [ "10.80.1.107/32" ],
  27. "moose" = [ "10.80.0.0/16" ],
  28. }
  29. legacy_account = "477548533976"
  30. c2_accounts = {
  31. "aws-us-gov" = "721817724804" # mdr-prod-c2-gov
  32. "aws" = "045312110490" # mdr-prod-c2
  33. }
  34. dns_servers = [
  35. "10.40.2.77",
  36. "10.32.2.94",
  37. ]
  38. inbound_resolver_endpoints = [
  39. "10.40.0.198",
  40. "10.40.0.64",
  41. ]
  42. dns_info = {
  43. "private" = {
  44. zone = "pvt.xdr.accenturefederalcyber.com",
  45. zone_id = "Z08498911YSZW4A0XN4AG"
  46. }
  47. "reverse" = {
  48. zone = "10.in-addr.arpa"
  49. zone_id = "Z08395981DXDBY6CVJTW1"
  50. }
  51. "public" = {
  52. zone = "xdr.accenturefederalcyber.com"
  53. zone_id = "Z0083657A94URZM2TM87"
  54. }
  55. }
  56. # Legacy DNS
  57. dns_private = {
  58. "id" = "Z2JVOIKXZP64QP"
  59. "name" = "msoc.defpoint.local"
  60. }
  61. dns_private2 = {
  62. # There are many of these... future task to figure it out
  63. "id" = "Z2RGT77XQU1QBX"
  64. "name" = "mdr.defpoint.com"
  65. }
  66. dns_public = {
  67. "id" = "Z2HYR9YEZ4KLDE"
  68. "name" = "mdr.defpoint.com"
  69. }
  70. # Provide some legacy DNS entries so that systems we build
  71. # don't have to be rebuilt when we migrate the supporting systems.
  72. # Idea here is just to build entries for those systems we need during
  73. # the transition.
  74. #
  75. # When you migrate one of the systems below:
  76. # 1) Remove the entry from this list.
  77. # 2) Reapply the legacy-mdr-*/026-legacy-dns-entries module.
  78. # 3) Create a new entry in the module with which you're creating the new instance.
  79. legacy_private_dns = {
  80. #"jira-server" = "10.80.101.250",
  81. "mailrelay" = "10.80.1.107",
  82. #"openvpn" = "10.100.0.129",
  83. #"phantom" = "10.80.101.221",
  84. "proxy" = "10.80.101.166",
  85. "reposerver" = "10.80.101.197",
  86. "sensu" = "10.80.101.230",
  87. #"splunk-mc" = "10.80.1.27",
  88. #"vault-1" = "10.80.1.134",
  89. #"vault-2" = "10.80.2.236",
  90. #"vault-3" = "10.80.3.61",
  91. "salt-master" = "10.80.101.170",
  92. }
  93. legacy_private_cname_dns = {
  94. "iratemoses" = "internal-moose-internal-187462540.us-east-1.elb.amazonaws.com"
  95. }
  96. legacy_public_dns = {
  97. "bastion" = "18.233.216.6",
  98. "proxy" = "35.153.103.164",
  99. "reposerver" = "18.234.16.205",
  100. "salt-master" = "52.5.165.105",
  101. "sensu" = "52.6.95.246",
  102. }
  103. # cnames only
  104. legacy_public_cname_dns = {
  105. "iratemoses" = "moose-external-1850541289.us-east-1.elb.amazonaws.com",
  106. "portal" = "portal-alb-prod-1353134871.us-east-1.elb.amazonaws.com"
  107. }
  108. }