account.hcl 7.4 KB

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