account.hcl 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. # TODO put the right values here
  5. account_name = "mdr-prod-bas"
  6. account_alias = "mdr-prod-bas"
  7. aws_account_id = "081915784976"
  8. instance_termination_protection = true # set to true for production!
  9. splunk_prefix = "bas"
  10. splunk_data_sources = [
  11. "52.61.137.158/32", # TODO: Add customer's public IP addresses
  12. ]
  13. splunk_legacy_cidr = [] # Should not be needed for new customers
  14. splunk_asg_sizes = [1, 1, 0] # How many indexers in each site
  15. account_tags = {
  16. "Client" : local.splunk_prefix,
  17. }
  18. c2_account_standards_path = "../../mdr-prod-c2/005-account-standards-c2" # TODO: Subsitute with test or prod
  19. # For CIDR assignment, see https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation
  20. vpc_info = {
  21. "vpc-splunk" = {
  22. "name" = "vpc-splunk",
  23. "purpose" = "Splunk Systems (BAS)", # TODO: Substitute with Customer Name
  24. "cidr" = "10.42.24.0/22",
  25. "tgw_attached" = true
  26. }
  27. }
  28. # Qualys Connector - See https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/Qualys
  29. qualys_connector_externalid = "1620314156668" # Needs to come from the qualys console
  30. # End of TODO
  31. # Splunk instance sizes can be customized
  32. # TODO: Set these appropriately in the skeleton for prod
  33. instance_types = {
  34. "splunk-cm" = "m5a.xlarge", # legacy: t2.small
  35. "splunk-indexer" = "i3en.3xlarge", # legacy: t2.small, but whats the point if we don't have instance storage.
  36. "splunk-hf" = "m5a.xlarge", # legacy: t2.medium
  37. "splunk-sh" = "m5a.4xlarge", # legacy: ? not sure
  38. }
  39. # Splunk Volume Sizes are probably fine at defaults
  40. splunk_volume_sizes = {
  41. "cluster_master" = {
  42. "swap" : 8, # minimum: 8
  43. "/" : 20, # minimum: 20
  44. "/home" : 4, # minimum: 4
  45. "/var" : 15, # minimum: 15
  46. "/var/tmp" : 4, # minimum: 4
  47. "/var/log" : 8, # minimum: 8
  48. "/var/log/audit" : 8, # minimum: 8
  49. "/tmp" : 4, # minimum: 4
  50. "/opt/splunk" : 30, # No minimum; not in base image
  51. },
  52. "indexer" = {
  53. "swap" : 8, # minimum: 8
  54. "/" : 20, # minimum: 20
  55. "/home" : 4, # minimum: 4
  56. "/var" : 15, # minimum: 15
  57. "/var/tmp" : 4, # minimum: 4
  58. "/var/log" : 8, # minimum: 8
  59. "/var/log/audit" : 8, # minimum: 8
  60. "/tmp" : 4, # minimum: 4
  61. "/opt/splunk" : 30, # No minimum; not in base image
  62. },
  63. "searchhead" = {
  64. "swap" : 8, # minimum: 8
  65. "/" : 20, # minimum: 20
  66. "/home" : 4, # minimum: 4
  67. "/var" : 15, # minimum: 15
  68. "/var/tmp" : 4, # minimum: 4
  69. "/var/log" : 8, # minimum: 8
  70. "/var/log/audit" : 8, # minimum: 8
  71. "/tmp" : 4, # minimum: 4
  72. "/opt/splunk" : 60, # No minimum; not in base image
  73. },
  74. "heavy_forwarder" = {
  75. "swap" : 8, # minimum: 8
  76. "/" : 20, # minimum: 20
  77. "/home" : 4, # minimum: 4
  78. "/var" : 15, # minimum: 15
  79. "/var/tmp" : 4, # minimum: 4
  80. "/var/log" : 8, # minimum: 8
  81. "/var/log/audit" : 8, # minimum: 8
  82. "/tmp" : 4, # minimum: 4
  83. "/opt/splunk" : 30, # No minimum; not in base image
  84. },
  85. }
  86. }