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