account.hcl 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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-tiaas"
  6. account_alias = "mdr-tiaas"
  7. aws_account_id = "417443073855"
  8. instance_termination_protection = true # set to true for production!
  9. splunk_prefix = "tiaas"
  10. splunk_private_hec = false # True if the customer needs a private HTTP Event Collector such as for ALSI
  11. splunk_data_sources = [
  12. "x.x.x.x/32", # TODO: Add customer's public IP addresses
  13. ]
  14. splunk_legacy_cidr = [ ] # Should not be needed for new customers
  15. splunk_asg_sizes = [ 1, 1, 1 ] # How many indexers in each site
  16. account_tags = {
  17. "Client": local.splunk_prefix,
  18. }
  19. c2_account_standards_path = "../../mdr-prod-c2/005-account-standards-c2" # TODO: Subsitute with test or prod
  20. # For CIDR assignment, see https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation
  21. vpc_info = {
  22. "vpc-splunk" = {
  23. "name" = "vpc-splunk",
  24. "purpose" = "Splunk Systems (TODO)", # TODO: Substitute with Customer Name
  25. "cidr" = "TODO",
  26. "tgw_attached" = true
  27. }
  28. }
  29. # Qualys Connector - See https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/Qualys
  30. qualys_connector_externalid = "LATER" # Needs to come from the qualys console
  31. # End of TODO
  32. # Splunk instance sizes can be customized
  33. # TODO: Set these appropriately in the skeleton for prod
  34. instance_types = {
  35. "alsi-master" = "t3a.small",
  36. "alsi-worker" = "t3a.small",
  37. "splunk-cm" = "t3a.small", # legacy: t2.small
  38. "splunk-indexer" = "i3en.large", # legacy: t2.small, but whats the point if we don't have instance storage.
  39. "splunk-hf" = "t3a.small", # legacy: t2.medium
  40. "splunk-sh" = "t3a.small", # legacy: ? not sure
  41. }
  42. # Splunk Volume Sizes are probably fine at defaults
  43. splunk_volume_sizes = {
  44. "cluster_master" = {
  45. "swap": 8, # minimum: 8
  46. "/": 10, # minimum: 10
  47. "/home": 4, # minimum: 4
  48. "/var": 15, # minimum: 15
  49. "/var/tmp": 4, # minimum: 4
  50. "/var/log": 8, # minimum: 8
  51. "/var/log/audit": 8, # minimum: 8
  52. "/tmp": 4, # minimum: 4
  53. "/opt/splunk": 30, # No minimum; not in base image
  54. },
  55. "indexer" = {
  56. "swap": 8, # minimum: 8
  57. "/": 10, # minimum: 10
  58. "/home": 4, # minimum: 4
  59. "/var": 15, # minimum: 15
  60. "/var/tmp": 4, # minimum: 4
  61. "/var/log": 8, # minimum: 8
  62. "/var/log/audit": 8, # minimum: 8
  63. "/tmp": 4, # minimum: 4
  64. "/opt/splunk": 30, # No minimum; not in base image
  65. },
  66. "searchhead" = {
  67. "swap": 8, # minimum: 8
  68. "/": 10, # minimum: 10
  69. "/home": 4, # minimum: 4
  70. "/var": 15, # minimum: 15
  71. "/var/tmp": 4, # minimum: 4
  72. "/var/log": 8, # minimum: 8
  73. "/var/log/audit": 8, # minimum: 8
  74. "/tmp": 4, # minimum: 4
  75. "/opt/splunk": 30, # No minimum; not in base image
  76. },
  77. "heavy_forwarder" = {
  78. "swap": 8, # minimum: 8
  79. "/": 10, # minimum: 10
  80. "/home": 4, # minimum: 4
  81. "/var": 15, # minimum: 15
  82. "/var/tmp": 4, # minimum: 4
  83. "/var/log": 8, # minimum: 8
  84. "/var/log/audit": 8, # minimum: 8
  85. "/tmp": 4, # minimum: 4
  86. "/opt/splunk": 30, # No minimum; not in base image
  87. },
  88. }
  89. # ALSI - Aggregated Log Source Ingestion
  90. #
  91. # If cribl is being used for log ingestion, remember to turn on splunk_private_hec, too.
  92. alsi_workers = 0 # how many cribl workers
  93. alsi_splunk_nlb = false # splunk://moose-alsi-splunk.xdr{,test}.accenturefederalcyber.com:9997 and 9998
  94. alsi_elastic_alb = false # https://moose-alsi-elastic.xdr{,test}.accenturefederalcyber.com -> 9200
  95. alsi_hec_alb = false # https://moose-alsi-hec.xdr{,test}.accenturefederalcyber.com -> 8080
  96. }