account.hcl 4.1 KB

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