account.hcl 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. # "x.x.x.x/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, 1 ] # 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. # For testing
  29. create_test_instance = false
  30. # Qualys Connector - See https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/Qualys
  31. qualys_connector_externalid = "LATER" # Needs to come from the qualys console
  32. # End of TODO
  33. # Splunk instance sizes can be customized
  34. # TODO: Set these appropriately in the skeleton for prod
  35. instance_types = {
  36. "splunk-cm" = "t3a.large", # legacy: t2.small
  37. "splunk-indexer" = "i3en.xlarge", # legacy: t2.small, but whats the point if we don't have instance storage.
  38. "splunk-hf" = "t3a.xlarge", # legacy: t2.medium
  39. "splunk-sh" = "t3a.xlarge", # legacy: ? not sure
  40. }
  41. # Splunk Volume Sizes are probably fine at defaults
  42. splunk_volume_sizes = {
  43. "cluster_master" = {
  44. "swap": 8, # minimum: 8
  45. "/": 10, # minimum: 10
  46. "/home": 4, # minimum: 4
  47. "/var": 15, # minimum: 15
  48. "/var/tmp": 4, # minimum: 4
  49. "/var/log": 8, # minimum: 8
  50. "/var/log/audit": 8, # minimum: 8
  51. "/tmp": 4, # minimum: 4
  52. "/opt/splunk": 30, # No minimum; not in base image
  53. },
  54. "indexer" = {
  55. "swap": 8, # minimum: 8
  56. "/": 10, # minimum: 10
  57. "/home": 4, # minimum: 4
  58. "/var": 15, # minimum: 15
  59. "/var/tmp": 4, # minimum: 4
  60. "/var/log": 8, # minimum: 8
  61. "/var/log/audit": 8, # minimum: 8
  62. "/tmp": 4, # minimum: 4
  63. "/opt/splunk": 30, # No minimum; not in base image
  64. },
  65. "searchhead" = {
  66. "swap": 8, # minimum: 8
  67. "/": 10, # minimum: 10
  68. "/home": 4, # minimum: 4
  69. "/var": 15, # minimum: 15
  70. "/var/tmp": 4, # minimum: 4
  71. "/var/log": 8, # minimum: 8
  72. "/var/log/audit": 8, # minimum: 8
  73. "/tmp": 4, # minimum: 4
  74. "/opt/splunk": 30, # No minimum; not in base image
  75. },
  76. "heavy_forwarder" = {
  77. "swap": 8, # minimum: 8
  78. "/": 10, # minimum: 10
  79. "/home": 4, # minimum: 4
  80. "/var": 15, # minimum: 15
  81. "/var/tmp": 4, # minimum: 4
  82. "/var/log": 8, # minimum: 8
  83. "/var/log/audit": 8, # minimum: 8
  84. "/tmp": 4, # minimum: 4
  85. "/opt/splunk": 30, # No minimum; not in base image
  86. },
  87. }
  88. }