account.hcl 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. # Set account-wide variables. These are automatically pulled in to configure the remote state bucket in the root
  2. # terragrunt.hcl configuration.
  3. locals {
  4. account_name = "afs-mdr-test-c2-gov"
  5. account_alias = "afs-mdr-test-c2-gov"
  6. aws_account_id = "738800754746"
  7. instance_termination_protection = false # set to true for production!
  8. splunk_prefix = "moose"
  9. splunk_private_hec = true # True if the customer needs a private HTTP Event Collector such as for ALSI
  10. # Additional sources that are allowed to send data, such as Customer LCPs, Azure, etc.
  11. splunk_data_sources = [
  12. "170.248.172.0/23", # ?
  13. "20.190.250.137/32", # ?
  14. "52.232.227.197/32", # ?
  15. "52.185.64.173/32", # ?
  16. "52.242.225.98/32", # ?
  17. "52.177.84.83/32", # ?
  18. "199.16.64.3/32", #?
  19. "99.56.213.129/32", # Fred Damstra's Home IP - For testing
  20. ]
  21. splunk_legacy_cidr = [ # Allow splunk ports to/from here, too
  22. "10.96.0.0/16",
  23. ]
  24. splunk_asg_sizes = [ 1, 1, 1 ] # How many?
  25. splunk_volume_sizes = {
  26. "cluster_master" = {
  27. "swap": 8, # minimum: 8
  28. "/": 10, # minimum: 10
  29. "/home": 4, # minimum: 4
  30. "/var": 15, # minimum: 15
  31. "/var/tmp": 4, # minimum: 4
  32. "/var/log": 8, # minimum: 8
  33. "/var/log/audit": 8, # minimum: 8
  34. "/tmp": 4, # minimum: 4
  35. "/opt/splunk": 30, # No minimum; not in base image
  36. },
  37. "indexer" = {
  38. "swap": 8, # minimum: 8
  39. "/": 10, # minimum: 10
  40. "/home": 4, # minimum: 4
  41. "/var": 15, # minimum: 15
  42. "/var/tmp": 4, # minimum: 4
  43. "/var/log": 8, # minimum: 8
  44. "/var/log/audit": 8, # minimum: 8
  45. "/tmp": 4, # minimum: 4
  46. "/opt/splunk": 30, # No minimum; not in base image
  47. },
  48. "searchhead" = {
  49. "swap": 8, # minimum: 8
  50. "/": 10, # minimum: 10
  51. "/home": 4, # minimum: 4
  52. "/var": 15, # minimum: 15
  53. "/var/tmp": 4, # minimum: 4
  54. "/var/log": 8, # minimum: 8
  55. "/var/log/audit": 8, # minimum: 8
  56. "/tmp": 4, # minimum: 4
  57. "/opt/splunk": 30, # No minimum; not in base image
  58. },
  59. # Qcompliance, fm-shared-search, and the mc are all searchheads
  60. # "qcompliance" = {
  61. # "swap": 8, # minimum: 8
  62. # "/": 10, # minimum: 10
  63. # "/home": 4, # minimum: 4
  64. # "/var": 15, # minimum: 15
  65. # "/var/tmp": 4, # minimum: 4
  66. # "/var/log": 8, # minimum: 8
  67. # "/var/log/audit": 8, # minimum: 8
  68. # "/tmp": 4, # minimum: 4
  69. # "/opt/splunk": 30, # No minimum; not in base image
  70. # },
  71. "heavy_forwarder" = {
  72. "swap": 8, # minimum: 8
  73. "/": 10, # minimum: 10
  74. "/home": 4, # minimum: 4
  75. "/var": 15, # minimum: 15
  76. "/var/tmp": 4, # minimum: 4
  77. "/var/log": 8, # minimum: 8
  78. "/var/log/audit": 8, # minimum: 8
  79. "/tmp": 4, # minimum: 4
  80. "/opt/splunk": 30, # No minimum; not in base image
  81. },
  82. }
  83. account_tags = {
  84. "Client": local.splunk_prefix,
  85. }
  86. c2_account_standards_path = "../../mdr-test-c2/005-account-standards-c2"
  87. # For CIDR assignment, see https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation
  88. vpc_info = {
  89. "vpc-splunk" = {
  90. "name" = "vpc-splunk"
  91. "purpose" = "Splunk Systems (MOOSE)"
  92. "cidr" = "10.20.16.0/22",
  93. "tgw_attached" = true,
  94. },
  95. "vpc-system-services" = {
  96. "name" = "vpc-system-services",
  97. "purpose" = "Internal Services for Systems (not people)",
  98. "cidr" = "10.20.0.0/22",
  99. "tgw_attached" = false, # NOTE: This is attached via the transit gateway creation
  100. },
  101. "vpc-scanners" = {
  102. "name" = "vpc-scanners",
  103. "purpose" = "Security Scanning",
  104. "cidr" = "10.20.12.0/22",
  105. "tgw_attached" = true,
  106. },
  107. "vpc-interconnects" = {
  108. "name" = "vpc-interconnects",
  109. "purpose" = "Interconnections between AWS partitions",
  110. "cidr" = "10.179.128.0/22",
  111. "tgw_attached" = false,
  112. },
  113. "vpc-access" = {
  114. "name" = "vpc-access"
  115. "purpose" = "Systems providing restricted access, such as bastions and vpn concentrators"
  116. "cidr" = "10.20.20.0/22"
  117. "tgw_attached" = true,
  118. },
  119. "vpc-portal" = {
  120. "name" = "vpc-portal"
  121. "purpose" = "The Customer Portal"
  122. "cidr" = "10.20.32.0/24"
  123. "tgw_attached" = true,
  124. },
  125. "vpc-public" = {
  126. "name" = "vpc-public"
  127. "purpose" = "Publicly Accessible Infrastructure Services, such as GHE and Jira"
  128. "cidr" = "10.20.24.0/22"
  129. "tgw_attached" = true,
  130. },
  131. "vpc-private-services" = {
  132. "name" = "vpc-private-services"
  133. "purpose" = "Private XDR Services for XDR users"
  134. "cidr" = "10.20.28.0/22"
  135. "tgw_attached" = true,
  136. },
  137. }
  138. instance_types = {
  139. "alsi-master" = "t3a.small",
  140. "alsi-worker" = "t3a.small",
  141. "fm-shared-search" = "t3a.small", # Legacy: t2.small, prod m4.large
  142. "github" = "c5.2xlarge", # legacy: c4.4xlarge in prod, c5.2xlarge in test
  143. "github-backup" = "t3a.medium", # legacy: t2.micro
  144. "jira-rds" = "db.t3.medium",
  145. "jira-server" = "t3a.small", # legacy test: t2.small, legacy prod: t2.medium
  146. "keycloak" = "t3a.large",
  147. "keycloak-db" = "db.t3.micro"
  148. "nessus_security_center" = "m5a.xlarge",
  149. "nessus_scanners" = "m5a.large",
  150. "nessus_receivers" = "m5a.large",
  151. "phantom" = "t3a.medium", # legacy test: t2.medium, legacy prod: m4.4xlarge
  152. "qcompliance" = "t3a.small", # legacy: ? not sure
  153. "splunk-cm" = "t3a.small", # legacy: t2.small
  154. "splunk-hf" = "t3a.small", # legacy: t2.medium
  155. #"splunk-indexer" = "t3a.small", # legacy: t2.small, but whats the point if we don't have instance storage.
  156. #"splunk-indexer" = "i3en.large", # legacy: t2.small, but whats the point if we don't have instance storage.
  157. #"splunk-indexer" = "m5d.large", # these are 1/2 the price of i3en.larges. 8GB RAM, 75GB storage
  158. "splunk-indexer" = "m5d.xlarge", # 16GB RAM, 150GB SSD
  159. "splunk-mc" = "t3a.small", # Legacy: t2.small, prod m4.large
  160. "splunk-sh" = "t3a.small", # legacy: ? not sure
  161. "portal" = "t3a.medium", # legacy: t2.medium
  162. }
  163. # TODO: The instance types below should be moved to the instance_type map above
  164. # DNS Resolver
  165. resolver_instance_type = "t3a.micro"
  166. # Bastion
  167. bastion_instance_type = "t3a.micro"
  168. # Keycloak
  169. keycloak_instance_count = 2
  170. # Salt Master
  171. salt_master_instance_type = "t3a.large"
  172. # Mail Relay Server
  173. mailrelay_instance_type = "t3a.micro"
  174. # Nessus Scanner Variables
  175. nessus_scanner_count = 2
  176. nessus_receiver_count = 1 # Can't see us needing more than one?
  177. # OpenVPN Server
  178. openvpn_instance_type = "t3a.medium"
  179. # Phantom Server
  180. phantom_instance_count = 1
  181. # Proxy Server
  182. proxy_server_instance_type = "t3a.micro"
  183. # Repo Server
  184. repo_server_instance_type = "t3a.micro"
  185. # Vault Server
  186. vault_server_instance_type = "t3a.small"
  187. # Sensu Server
  188. sensu_server_instance_type = "t3a.medium"
  189. # Github Servers
  190. github_instance_count = 1
  191. github_data_volume_size = 500
  192. # ALSI Servers
  193. alsi_workers = 2
  194. alsi_splunk_nlb = true # splunk://moose-alsi-splunk.xdr{,test}.accenturefederalcyber.com:9997 and 9998
  195. alsi_elastic_alb = true # https://moose-alsi-elastic.xdr{,test}.accenturefederalcyber.com -> 9200
  196. alsi_hec_alb = true # https://moose-alsi-hec.xdr{,test}.accenturefederalcyber.com -> 8080
  197. # AS Number used for various resources, but not every account needs one.
  198. asn = 64710 # changing this replaces the gateway
  199. # Interconnects
  200. interconnect_asn = 64777
  201. interconnects_instance_type = "t3a.micro"
  202. interconnects_key_name = "fdamstra" # DO NOT CHANGE
  203. interconnects_count = 2
  204. interconnect_instances_path = "../018-interconnect-instances"
  205. # Qualys Scanners
  206. qualys_personalization_codes = {
  207. standard = "21035137513195" # XDR_Test_Govcloud_Standard
  208. preauthorized = "21054299967066" # XDR_Test_Govcloud_Preauthorized
  209. }
  210. # Qualys Connector
  211. qualys_connector_externalid = "1601148045651" # Needs to come from the qualys console
  212. }