account.hcl 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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-prod-c2-gov"
  5. account_alias = "afs-mdr-prod-c2-gov"
  6. aws_account_id = "721817724804"
  7. instance_termination_protection = true # 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. # For CIDR assignment, see https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation
  11. standard_vpc_cidr = "10.40.0.0/22"
  12. splunk_data_sources = [
  13. "170.248.172.0/23", # legacy afs_whitelist
  14. "20.190.250.137/32", # legacy afs_azure_whitelist: EastUS2_External_Access
  15. "52.232.227.197/32", # legacy afs_azure_whitelist: Azure US-East Palo
  16. "52.185.64.173/32", # legacy afs_azure_whitelist: CentralUS_External_Access
  17. "52.242.225.98/32", # legacy afs_azure_whitelist: Azure US-Central Palo 20200721
  18. "52.177.84.83/32", # legacy afs_azure_whitelist: Lab_External_Access
  19. "199.16.64.3/32", # legacy nga_whitelist
  20. "54.205.60.17/32", #FRTIB ALIGHT
  21. "52.206.203.98/32", #FRTIB ALIGHT
  22. "34.233.188.131/32", #FRTIB ALIGHT
  23. "52.61.113.202/32", #FRTIB VDI
  24. "15.200.226.57/32", #FRTIB CMPS
  25. "52.61.137.158/32", #BAS-Commerce CMPS
  26. "34.223.59.103/32", # CA-C19
  27. "44.234.190.14/32", # CA-C19
  28. "44.228.141.151/32", # CA-C19
  29. "3.32.175.159/32", # DGI
  30. "15.200.13.143/32", # DGI
  31. ]
  32. splunk_legacy_cidr = [ # Allow splunk ports to/from here, too
  33. "10.80.0.0/16",
  34. ]
  35. splunk_asg_sizes = [ 1, 1, 1 ] # How many?
  36. splunk_volume_sizes = {
  37. "cluster_master" = {
  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. "indexer" = {
  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": 60, # No minimum; not in base image
  58. },
  59. "searchhead" = {
  60. "swap": 8, # minimum: 8
  61. "/": 10, # minimum: 10
  62. "/home": 4, # minimum: 4
  63. "/var": 15, # minimum: 15
  64. "/var/tmp": 4, # minimum: 4
  65. "/var/log": 8, # minimum: 8
  66. "/var/log/audit": 8, # minimum: 8
  67. "/tmp": 4, # minimum: 4
  68. "/opt/splunk": 60, # No minimum; not in base image
  69. },
  70. # qcompliance, fm-shared-search, and the monitoring console are all searchheads
  71. # "qcompliance" = {
  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. "heavy_forwarder" = {
  83. "swap": 8, # minimum: 8
  84. "/": 10, # minimum: 10
  85. "/home": 4, # minimum: 4
  86. "/var": 15, # minimum: 15
  87. "/var/tmp": 4, # minimum: 4
  88. "/var/log": 8, # minimum: 8
  89. "/var/log/audit": 8, # minimum: 8
  90. "/tmp": 4, # minimum: 4
  91. "/opt/splunk": 30, # No minimum; not in base image
  92. },
  93. }
  94. account_tags = {
  95. "Client": local.splunk_prefix
  96. }
  97. c2_account_standards_path = "../../mdr-prod-c2/005-account-standards-c2"
  98. vpc_info = {
  99. "vpc-splunk" = {
  100. "name" = "vpc-splunk"
  101. "purpose" = "Splunk Systems (MOOSE)"
  102. "cidr" = "10.40.16.0/22",
  103. "tgw_attached" = true,
  104. },
  105. "vpc-system-services" = {
  106. "name" = "vpc-system-services",
  107. "purpose" = "Internal Services for Systems",
  108. "cidr" = "10.40.0.0/22",
  109. "tgw_attached" = false, # Attached via tgw creation
  110. },
  111. "vpc-scanners" = {
  112. "name" = "vpc-scanners",
  113. "purpose" = "Security Scanning",
  114. "cidr" = "10.40.12.0/22",
  115. "tgw_attached" = true,
  116. },
  117. "vpc-interconnects" = {
  118. "name" = "vpc-interconnects",
  119. "purpose" = "Interconnections between AWS partitions",
  120. "cidr" = "10.179.0.0/22",
  121. "tgw_attached" = true,
  122. },
  123. "vpc-access" = {
  124. "name" = "vpc-access"
  125. "purpose" = "Systems providing restricted access, such as bastions and vpn concentrators"
  126. "cidr" = "10.40.20.0/22",
  127. "tgw_attached" = true,
  128. },
  129. "vpc-portal" = {
  130. "name" = "vpc-portal"
  131. "purpose" = "The Customer Portal"
  132. "cidr" = "10.40.32.0/24",
  133. "tgw_attached" = true,
  134. },
  135. "vpc-public" = {
  136. "name" = "vpc-public"
  137. "purpose" = "Publicly Accessible Infrastructure Services, such as GHE and Jira"
  138. "cidr" = "10.40.24.0/22",
  139. "tgw_attached" = true,
  140. },
  141. "vpc-private-services" = {
  142. "name" = "vpc-private-services"
  143. "purpose" = "Private XDR Services for XDR users"
  144. "cidr" = "10.40.28.0/22",
  145. "tgw_attached" = true,
  146. },
  147. }
  148. instance_types = {
  149. #"alsi-master" = "t3a.small",
  150. #"alsi-worker" = "t3a.small",
  151. "fm-shared-search" = "m5a.large", # Legacy: t2.small, prod m4.large
  152. "github" = "c5.4xlarge", # legacy: c4.4xlarge in prod, c5.2xlarge in test
  153. "github-backup" = "t3a.medium", # legacy: t2.medium
  154. "jira-rds" = "db.t3.medium",
  155. "jira-server" = "m5a.xlarge", # legacy test: t2.small, legacy prod: t2.medium
  156. "nessus_security_center" = "m5a.xlarge",
  157. "nessus_scanners" = "m5a.large",
  158. "nessus_managers" = "m5a.large",
  159. "phantom" = "m5a.4xlarge", # legacy test: t2.medium, legacy prod: m4.4xlarge
  160. "qcompliance" = "c5a.8xlarge", # legacy: c4.8xlarge
  161. "rhsso" = "m5a.large",
  162. "rhsso-db" = "db.t3.micro"
  163. "splunk-cm" = "m5a.xlarge",
  164. "splunk-hf" = "m5a.xlarge",
  165. "splunk-indexer" = "i3en.3xlarge",
  166. "splunk-mc" = "m5a.large", # Legacy: t2.small, prod m4.large
  167. "splunk-sh" = "m5a.4xlarge",
  168. "portal" = "t3a.medium", # legacy: t2.medium
  169. }
  170. # Bastion
  171. bastion_instance_type = "t3a.micro"
  172. # GitHub
  173. github_instance_count = 1
  174. github_data_volume_size = 500
  175. # Salt Master
  176. salt_master_instance_type = "t3a.xlarge"
  177. # mailrelay
  178. mailrelay_instance_type = "t3a.micro"
  179. # Nessus Scanner Variables
  180. nessus_scanner_count = 2
  181. nessus_manager_count = 1 # Can't see us needing more than one?
  182. # OpenVPN Server
  183. openvpn_instance_type = "t3a.medium"
  184. # Phantom Server
  185. phantom_instance_count = 1
  186. # Proxy
  187. proxy_server_instance_type = "t3a.medium"
  188. # Repo Server
  189. repo_server_instance_type = "t3a.micro"
  190. # rhsso
  191. rhsso_instance_count = 1 # > 1 is untested, likely requires additional work
  192. # DNS Resolver
  193. resolver_instance_type = "t3a.micro"
  194. # Vault Server
  195. vault_server_instance_type = "t3a.medium"
  196. # Sensu Server
  197. sensu_server_instance_type = "t3a.medium"
  198. # AS Number used for various resources, but not every account needs one.
  199. asn = 64810
  200. security_vpc_cidr = "10.179.0.0/22"
  201. # Interconnects
  202. interconnect_asn = 64888
  203. #interconnects_instance_type = "t3a.micro"
  204. interconnects_instance_type = "m5.xlarge"
  205. interconnects_key_name = "fdamstra" # DO NOT CHANGE
  206. interconnects_count = 2
  207. interconnect_instances_path = "../018-interconnect-instances"
  208. # Qualys Scanners
  209. qualys_personalization_codes = {
  210. standard = "21007869625439" # XDR_Prod_Govcloud_Standard
  211. preauthorized = "21028116523735" # XDR_Prod_Govcloud_Preauthorized
  212. }
  213. # Qualys Connector, defined in AssetView in Qualys Console
  214. qualys_connector_externalid = "1621818655116" # mdr-prod-c2-gov
  215. }