account.hcl 3.0 KB

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