account.hcl 3.9 KB

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