account.hcl 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. c2_account_standards_path = "../../mdr-test-c2/005-account-standards-c2" # Subsitute with test or prod
  15. # For CIDR assignment, see https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation
  16. vpc_info = {
  17. "vpc-splunk" = {
  18. "name" = "vpc-splunk",
  19. "purpose" = "Splunk Systems (modelclient)", # Substitute with Customer Name
  20. "cidr" = "10.20.8.0/22",
  21. "tgw_attached" = true
  22. }
  23. }
  24. # For testing
  25. create_test_instance = false
  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" = "i3en.large", # 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. }