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. 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 = "modelclient"
  9. splunk_private_hec = false # True if the customer needs a private HTTP Event Collector such as for ALSI
  10. splunk_data_sources = [
  11. "x.x.x.x/32", # 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 (TODO)", # TODO: Substitute with Customer Name
  24. "cidr" = "10.42.28.0/22",
  25. "tgw_attached" = true
  26. }
  27. }
  28. # Qualys Connector - See https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/Qualys
  29. qualys_connector_externalid = "1616459938233" # Needs to come from the qualys console
  30. # End of TODO
  31. # Splunk instance sizes can be customized
  32. # TODO: Set these appropriately in the skeleton for prod
  33. instance_types = {
  34. "alsi-master" = "t3a.small",
  35. "alsi-worker" = "t3a.small",
  36. "splunk-cm" = "t3a.large", # legacy: t2.small
  37. "splunk-indexer" = "i3en.xlarge", # legacy: t2.small, but whats the point if we don't have instance storage.
  38. "splunk-hf" = "t3a.xlarge", # legacy: t2.medium
  39. "splunk-sh" = "t3a.xlarge", # legacy: ? not sure
  40. }
  41. # Splunk Volume Sizes are probably fine at defaults
  42. splunk_volume_sizes = {
  43. "cluster_master" = {
  44. "swap": 8, # minimum: 8
  45. "/": 10, # minimum: 10
  46. "/home": 4, # minimum: 4
  47. "/var": 15, # minimum: 15
  48. "/var/tmp": 4, # minimum: 4
  49. "/var/log": 8, # minimum: 8
  50. "/var/log/audit": 8, # minimum: 8
  51. "/tmp": 4, # minimum: 4
  52. "/opt/splunk": 30, # No minimum; not in base image
  53. },
  54. "indexer" = {
  55. "swap": 8, # minimum: 8
  56. "/": 20, # minimum: 20
  57. "/home": 4, # minimum: 4
  58. "/var": 15, # minimum: 15
  59. "/var/tmp": 4, # minimum: 4
  60. "/var/log": 8, # minimum: 8
  61. "/var/log/audit": 8, # minimum: 8
  62. "/tmp": 4, # minimum: 4
  63. "/opt/splunk": 30, # No minimum; not in base image
  64. },
  65. "searchhead" = {
  66. "swap": 8, # minimum: 8
  67. "/": 10, # minimum: 10
  68. "/home": 4, # minimum: 4
  69. "/var": 15, # minimum: 15
  70. "/var/tmp": 4, # minimum: 4
  71. "/var/log": 8, # minimum: 8
  72. "/var/log/audit": 8, # minimum: 8
  73. "/tmp": 4, # minimum: 4
  74. "/opt/splunk": 30, # No minimum; not in base image
  75. },
  76. "heavy_forwarder" = {
  77. "swap": 8, # minimum: 8
  78. "/": 10, # minimum: 10
  79. "/home": 4, # minimum: 4
  80. "/var": 15, # minimum: 15
  81. "/var/tmp": 4, # minimum: 4
  82. "/var/log": 8, # minimum: 8
  83. "/var/log/audit": 8, # minimum: 8
  84. "/tmp": 4, # minimum: 4
  85. "/opt/splunk": 30, # No minimum; not in base image
  86. },
  87. }
  88. # ALSI - Aggregated Log Source Ingestion
  89. #
  90. # If cribl is being used for log ingestion, remember to turn on splunk_private_hec, too.
  91. alsi_workers = 0 # how many cribl workers
  92. alsi_splunk_nlb = false # splunk://moose-alsi-splunk.xdr{,test}.accenturefederalcyber.com:9997 and 9998
  93. alsi_elastic_alb = false # https://moose-alsi-elastic.xdr{,test}.accenturefederalcyber.com -> 9200
  94. alsi_hec_alb = false # https://moose-alsi-hec.xdr{,test}.accenturefederalcyber.com -> 8080
  95. }