account.hcl 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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 CMPS
  24. "52.61.137.158/32", #BAS-Commerce CMPS
  25. "34.223.59.103/32", # CA-C19
  26. "44.234.190.14/32", # CA-C19
  27. "44.228.141.151/32", # CA-C19
  28. ]
  29. splunk_legacy_cidr = [ # Allow splunk ports to/from here, too
  30. "10.80.0.0/16",
  31. ]
  32. splunk_asg_sizes = [ 1, 1, 1 ] # How many?
  33. splunk_volume_sizes = {
  34. "cluster_master" = {
  35. "swap": 8, # minimum: 8
  36. "/": 10, # minimum: 10
  37. "/home": 4, # minimum: 4
  38. "/var": 15, # minimum: 15
  39. "/var/tmp": 4, # minimum: 4
  40. "/var/log": 8, # minimum: 8
  41. "/var/log/audit": 8, # minimum: 8
  42. "/tmp": 4, # minimum: 4
  43. "/opt/splunk": 30, # No minimum; not in base image
  44. },
  45. "indexer" = {
  46. "swap": 8, # minimum: 8
  47. "/": 10, # minimum: 10
  48. "/home": 4, # minimum: 4
  49. "/var": 15, # minimum: 15
  50. "/var/tmp": 4, # minimum: 4
  51. "/var/log": 8, # minimum: 8
  52. "/var/log/audit": 8, # minimum: 8
  53. "/tmp": 4, # minimum: 4
  54. "/opt/splunk": 30, # No minimum; not in base image
  55. },
  56. "searchhead" = {
  57. "swap": 8, # minimum: 8
  58. "/": 10, # minimum: 10
  59. "/home": 4, # minimum: 4
  60. "/var": 15, # minimum: 15
  61. "/var/tmp": 4, # minimum: 4
  62. "/var/log": 8, # minimum: 8
  63. "/var/log/audit": 8, # minimum: 8
  64. "/tmp": 4, # minimum: 4
  65. "/opt/splunk": 60, # No minimum; not in base image
  66. },
  67. # qcompliance, fm-shared-search, and the monitoring console are all searchheads
  68. # "qcompliance" = {
  69. # "swap": 8, # minimum: 8
  70. # "/": 10, # minimum: 10
  71. # "/home": 4, # minimum: 4
  72. # "/var": 15, # minimum: 15
  73. # "/var/tmp": 4, # minimum: 4
  74. # "/var/log": 8, # minimum: 8
  75. # "/var/log/audit": 8, # minimum: 8
  76. # "/tmp": 4, # minimum: 4
  77. # "/opt/splunk": 30, # No minimum; not in base image
  78. # },
  79. "heavy_forwarder" = {
  80. "swap": 8, # minimum: 8
  81. "/": 10, # minimum: 10
  82. "/home": 4, # minimum: 4
  83. "/var": 15, # minimum: 15
  84. "/var/tmp": 4, # minimum: 4
  85. "/var/log": 8, # minimum: 8
  86. "/var/log/audit": 8, # minimum: 8
  87. "/tmp": 4, # minimum: 4
  88. "/opt/splunk": 30, # No minimum; not in base image
  89. },
  90. }
  91. account_tags = {
  92. "Client": local.splunk_prefix
  93. }
  94. c2_account_standards_path = "../../mdr-prod-c2/005-account-standards-c2"
  95. vpc_info = {
  96. "vpc-splunk" = {
  97. "name" = "vpc-splunk"
  98. "purpose" = "Splunk Systems (MOOSE)"
  99. "cidr" = "10.40.16.0/22",
  100. "tgw_attached" = true,
  101. },
  102. "vpc-system-services" = {
  103. "name" = "vpc-system-services",
  104. "purpose" = "Internal Services for Systems",
  105. "cidr" = "10.40.0.0/22",
  106. "tgw_attached" = false, # Attached via tgw creation
  107. },
  108. "vpc-scanners" = {
  109. "name" = "vpc-scanners",
  110. "purpose" = "Security Scanning",
  111. "cidr" = "10.40.12.0/22",
  112. "tgw_attached" = true,
  113. },
  114. "vpc-interconnects" = {
  115. "name" = "vpc-interconnects",
  116. "purpose" = "Interconnections between AWS partitions",
  117. "cidr" = "10.179.0.0/22",
  118. "tgw_attached" = true,
  119. },
  120. "vpc-access" = {
  121. "name" = "vpc-access"
  122. "purpose" = "Systems providing restricted access, such as bastions and vpn concentrators"
  123. "cidr" = "10.40.20.0/22",
  124. "tgw_attached" = true,
  125. },
  126. "vpc-portal" = {
  127. "name" = "vpc-portal"
  128. "purpose" = "The Customer Portal"
  129. "cidr" = "10.40.32.0/24",
  130. "tgw_attached" = true,
  131. },
  132. "vpc-public" = {
  133. "name" = "vpc-public"
  134. "purpose" = "Publicly Accessible Infrastructure Services, such as GHE and Jira"
  135. "cidr" = "10.40.24.0/22",
  136. "tgw_attached" = true,
  137. },
  138. "vpc-private-services" = {
  139. "name" = "vpc-private-services"
  140. "purpose" = "Private XDR Services for XDR users"
  141. "cidr" = "10.40.28.0/22",
  142. "tgw_attached" = true,
  143. },
  144. }
  145. instance_types = {
  146. #"alsi-master" = "t3a.small",
  147. #"alsi-worker" = "t3a.small",
  148. "fm-shared-search" = "m5a.large", # Legacy: t2.small, prod m4.large
  149. "github" = "c5.4xlarge", # legacy: c4.4xlarge in prod, c5.2xlarge in test
  150. "github-backup" = "t3a.medium", # legacy: t2.medium
  151. "jira-rds" = "db.t3.medium",
  152. "jira-server" = "t3a.medium", # legacy test: t2.small, legacy prod: t2.medium
  153. "nessus_security_center" = "m5a.xlarge",
  154. "nessus_scanners" = "m5a.large",
  155. "phantom" = "m5a.4xlarge", # legacy test: t2.medium, legacy prod: m4.4xlarge
  156. "qcompliance" = "c5a.8xlarge", # legacy: c4.8xlarge
  157. "splunk-cm" = "m5a.xlarge",
  158. "splunk-hf" = "m5a.xlarge",
  159. "splunk-indexer" = "i3en.3xlarge",
  160. "splunk-mc" = "m5a.large", # Legacy: t2.small, prod m4.large
  161. "splunk-sh" = "m5a.4xlarge",
  162. "portal" = "t3a.medium", # legacy: t2.medium
  163. }
  164. # Bastion
  165. bastion_instance_type = "t3a.micro"
  166. # GitHub
  167. github_instance_count = 1
  168. github_data_volume_size = 500
  169. # Salt Master
  170. salt_master_instance_type = "t3a.xlarge"
  171. # mailrelay
  172. mailrelay_instance_type = "t3a.micro"
  173. # Nessus Scanner Variables
  174. nessus_scanner_count = 2
  175. # OpenVPN Server
  176. openvpn_instance_type = "t3a.medium"
  177. # Phantom Server
  178. phantom_instance_count = 1
  179. # Proxy
  180. proxy_server_instance_type = "t3a.medium"
  181. # Repo Server
  182. repo_server_instance_type = "t3a.micro"
  183. # DNS Resolver
  184. resolver_instance_type = "t3a.micro"
  185. # Vault Server
  186. vault_server_instance_type = "t3a.medium"
  187. # Sensu Server
  188. sensu_server_instance_type = "t3a.medium"
  189. # AS Number used for various resources, but not every account needs one.
  190. asn = 64810
  191. security_vpc_cidr = "10.179.0.0/22"
  192. # Interconnects
  193. interconnect_asn = 64888
  194. interconnects_instance_type = "t3a.micro"
  195. interconnects_key_name = "fdamstra" # DO NOT CHANGE
  196. interconnects_count = 2
  197. interconnect_instances_path = "../018-interconnect-instances"
  198. # Qualys Scanners
  199. qualys_personalization_codes = {
  200. standard = "21007869625439" # XDR_Prod_Govcloud_Standard
  201. preauthorized = "21028116523735" # XDR_Prod_Govcloud_Preauthorized
  202. }
  203. # Qualys Connector, defined in AssetView in Qualys Console
  204. qualys_connector_externalid = "1621818655116" # mdr-prod-c2-gov
  205. }