env.hcl 3.2 KB

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