account.hcl 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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" = {
  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": 30, # No minimum; not in base image
  69. },
  70. "heavy_forwarder" = {
  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. }
  82. account_tags = {
  83. "Client": local.splunk_prefix,
  84. }
  85. c2_account_standards_path = "../../mdr-test-c2/005-account-standards-c2"
  86. # For CIDR assignment, see https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation
  87. vpc_info = {
  88. "vpc-splunk" = {
  89. "name" = "vpc-splunk"
  90. "purpose" = "Splunk Systems (MOOSE)"
  91. "cidr" = "10.20.16.0/22",
  92. "tgw_attached" = true,
  93. },
  94. "vpc-system-services" = {
  95. "name" = "vpc-system-services",
  96. "purpose" = "Internal Services for Systems (not people)",
  97. "cidr" = "10.20.0.0/22",
  98. "tgw_attached" = false, # NOTE: This is attached via the transit gateway creation
  99. },
  100. "vpc-qualys" = {
  101. "name" = "vpc-qualys",
  102. "purpose" = "Security Scanning",
  103. "cidr" = "10.20.12.0/22",
  104. "tgw_attached" = true,
  105. },
  106. "vpc-interconnects" = {
  107. "name" = "vpc-interconnects",
  108. "purpose" = "Interconnections between AWS partitions",
  109. "cidr" = "10.179.128.0/22",
  110. "tgw_attached" = false,
  111. },
  112. "vpc-access" = {
  113. "name" = "vpc-access"
  114. "purpose" = "Systems providing restricted access, such as bastions and vpn concentrators"
  115. "cidr" = "10.20.20.0/22"
  116. "tgw_attached" = true,
  117. },
  118. "vpc-portal" = {
  119. "name" = "vpc-portal"
  120. "purpose" = "The Customer Portal"
  121. "cidr" = "10.20.32.0/24"
  122. "tgw_attached" = true,
  123. },
  124. "vpc-public" = {
  125. "name" = "vpc-public"
  126. "purpose" = "Publicly Accessible Infrastructure Services, such as GHE and Jira"
  127. "cidr" = "10.20.24.0/22"
  128. "tgw_attached" = true,
  129. },
  130. "vpc-private-services" = {
  131. "name" = "vpc-private-services"
  132. "purpose" = "Private XDR Services for XDR users"
  133. "cidr" = "10.20.28.0/22"
  134. "tgw_attached" = true,
  135. },
  136. }
  137. instance_types = {
  138. "alsi-master" = "t3a.small",
  139. "alsi-worker" = "t3a.small",
  140. "github" = "c5.2xlarge", # legacy: c4.4xlarge in prod, c5.2xlarge in test
  141. "github-backup" = "t3a.medium", # legacy: t2.micro
  142. "jira-rds" = "db.t3.medium",
  143. "jira-server" = "t3a.small", # legacy test: t2.small, legacy prod: t2.medium
  144. "phantom" = "t3a.medium", # legacy test: t2.medium, legacy prod: m4.4xlarge
  145. "qcompliance" = "t3a.small", # legacy: ? not sure
  146. "splunk-cm" = "t3a.small", # legacy: t2.small
  147. "splunk-hf" = "t3a.small", # legacy: t2.medium
  148. #"splunk-indexer" = "t3a.small", # legacy: t2.small, but whats the point if we don't have instance storage.
  149. #"splunk-indexer" = "i3en.large", # legacy: t2.small, but whats the point if we don't have instance storage.
  150. #"splunk-indexer" = "m5d.large", # these are 1/2 the price of i3en.larges. 8GB RAM, 75GB storage
  151. "splunk-indexer" = "m5d.xlarge", # 16GB RAM, 150GB SSD
  152. "splunk-sh" = "t3a.small", # legacy: ? not sure
  153. }
  154. # TODO: The instance types below should be moved to the instance_type map above
  155. # DNS Resolver
  156. resolver_instance_type = "t3a.micro"
  157. # Bastion
  158. bastion_instance_type = "t3a.micro"
  159. # Salt Master
  160. salt_master_instance_type = "t3a.large"
  161. # Mail Relay Server
  162. mailrelay_instance_type = "t3a.micro"
  163. # OpenVPN Server
  164. openvpn_instance_type = "t3a.medium"
  165. # Phantom Server
  166. phantom_instance_count = 1
  167. # Proxy Server
  168. proxy_server_instance_type = "t3a.micro"
  169. # Repo Server
  170. repo_server_instance_type = "t3a.micro"
  171. # Vault Server
  172. vault_server_instance_type = "t3a.micro"
  173. # Sensu Server
  174. sensu_server_instance_type = "t3a.medium"
  175. # Github Servers
  176. github_instance_count = 1
  177. github_data_volume_size = 500
  178. # ALSI Servers
  179. alsi_workers = 2
  180. alsi_splunk_nlb = true # splunk://moose-alsi-splunk.xdr{,test}.accenturefederalcyber.com:9997 and 9998
  181. alsi_elastic_alb = true # https://moose-alsi-elastic.xdr{,test}.accenturefederalcyber.com -> 9200
  182. alsi_hec_alb = true # https://moose-alsi-hec.xdr{,test}.accenturefederalcyber.com -> 8080
  183. # For testing:
  184. # Note: instead of changing this here, you can pass parameters to terragrunt on the CLI, such as:
  185. # TFVAR_create_test_instance=true TFVAR_test_instance_ami=base terragrunt apply
  186. create_test_instance = false
  187. # Extra customization if you want it
  188. #test_instance_key_name = "fdamstra" # They with which to provision the test instance
  189. #test_instance_ami = "base" # default = minion
  190. #test_instance_type = "t3a.micro" # default = t3a.micro
  191. # AS Number used for various resources, but not every account needs one.
  192. asn = 64710 # changing this replaces the gateway
  193. # Interconnects
  194. interconnect_asn = 64777
  195. interconnects_instance_type = "t3a.micro"
  196. interconnects_key_name = "fdamstra" # DO NOT CHANGE
  197. interconnects_count = 2
  198. interconnect_instances_path = "../018-interconnect-instances"
  199. # Qualys Scanners
  200. qualys_personalization_codes = {
  201. standard = "21009597903247"
  202. preauthorized = "21005906078774"
  203. }
  204. # Qualys Connector
  205. qualys_connector_externalid = "1601148045651" # Needs to come from the qualys console
  206. }