account.hcl 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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-prod-modelclient-gov"
  5. account_alias = "afs-mdr-prod-modelclient-gov"
  6. aws_account_id = "738736370544"
  7. instance_termination_protection = true # set to true for production!
  8. splunk_prefix = "bp-ot-demo"
  9. splunk_private_hec = false # True if the customer needs a private HTTP Event Collector such as for ALSI
  10. splunk_data_sources = [
  11. "184.105.253.64/28", # TODO: Add customer's public IP addresses
  12. ]
  13. splunk_legacy_cidr = [ ] # Should not be needed for new customers
  14. splunk_asg_sizes = [ 0, 0, 0 ] # 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 (bp-ot-demo)", # TODO: Substitute with Customer Name
  24. "cidr" = "10.42.28.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 = "1616459938233" # 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" = "t3a.large", # legacy: t2.small
  39. "splunk-indexer" = "i3en.xlarge", # legacy: t2.small, but whats the point if we don't have instance storage.
  40. "splunk-hf" = "t3a.xlarge", # legacy: t2.medium
  41. "splunk-sh" = "t3a.xlarge", # 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. }