account.hcl 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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-test-modelclient-gov"
  5. account_alias = "afs-mdr-test-modelclient-gov"
  6. aws_account_id = "701341250728"
  7. instance_termination_protection = false # set to true for production!
  8. splunk_prefix = "modelclient"
  9. splunk_data_sources = [
  10. ]
  11. splunk_legacy_cidr = [ ] # Should not be needed for new customers
  12. splunk_asg_sizes = [ 1, 1, 1 ] # How many indexers in each site
  13. account_tags = {
  14. "Client": local.splunk_prefix
  15. }
  16. c2_account_standards_path = "../../mdr-test-c2/005-account-standards-c2" # Subsitute with test or prod
  17. # For CIDR assignment, see https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation
  18. vpc_info = {
  19. "vpc-splunk" = {
  20. "name" = "vpc-splunk",
  21. "purpose" = "Splunk Systems (modelclient)", # Substitute with Customer Name
  22. "cidr" = "10.20.8.0/22",
  23. "tgw_attached" = true
  24. }
  25. }
  26. # For testing:
  27. # Note: instead of changing this here, you can pass parameters to terragrunt on the CLI, such as:
  28. # TFVAR_create_test_instance=true TFVAR_test_instance_ami=base terragrunt apply
  29. create_test_instance = false
  30. # Extra customization if you want it
  31. #test_instance_key_name = "fdamstra" # They with which to provision the test instance
  32. #test_instance_ami = "base" # default = minion
  33. #test_instance_type = "t3a.micro" # default = t3a.micro
  34. # Qualys Connector
  35. qualys_connector_externalid = "LATER" # 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. "splunk-cm" = "t3a.small", # legacy: t2.small
  41. "splunk-indexer" = "i3en.large", # legacy: t2.small, but whats the point if we don't have instance storage.
  42. "splunk-hf" = "t3a.small", # legacy: t2.medium
  43. "splunk-sh" = "t3a.small", # legacy: ? not sure
  44. }
  45. # Splunk Volume Sizes are probably fine at defaults
  46. splunk_volume_sizes = {
  47. "cluster_master" = {
  48. "swap": 8, # minimum: 8
  49. "/": 10, # minimum: 10
  50. "/home": 4, # minimum: 4
  51. "/var": 15, # minimum: 15
  52. "/var/tmp": 4, # minimum: 4
  53. "/var/log": 8, # minimum: 8
  54. "/var/log/audit": 8, # minimum: 8
  55. "/tmp": 4, # minimum: 4
  56. "/opt/splunk": 30, # No minimum; not in base image
  57. },
  58. "indexer" = {
  59. "swap": 8, # minimum: 8
  60. "/": 10, # minimum: 10
  61. "/home": 4, # minimum: 4
  62. "/var": 15, # minimum: 15
  63. "/var/tmp": 4, # minimum: 4
  64. "/var/log": 8, # minimum: 8
  65. "/var/log/audit": 8, # minimum: 8
  66. "/tmp": 4, # minimum: 4
  67. "/opt/splunk": 30, # No minimum; not in base image
  68. },
  69. "searchhead" = {
  70. "swap": 8, # minimum: 8
  71. "/": 10, # minimum: 10
  72. "/home": 4, # minimum: 4
  73. "/var": 15, # minimum: 15
  74. "/var/tmp": 4, # minimum: 4
  75. "/var/log": 8, # minimum: 8
  76. "/var/log/audit": 8, # minimum: 8
  77. "/tmp": 4, # minimum: 4
  78. "/opt/splunk": 30, # No minimum; not in base image
  79. },
  80. "heavy_forwarder" = {
  81. "swap": 8, # minimum: 8
  82. "/": 10, # minimum: 10
  83. "/home": 4, # minimum: 4
  84. "/var": 15, # minimum: 15
  85. "/var/tmp": 4, # minimum: 4
  86. "/var/log": 8, # minimum: 8
  87. "/var/log/audit": 8, # minimum: 8
  88. "/tmp": 4, # minimum: 4
  89. "/opt/splunk": 30, # No minimum; not in base image
  90. },
  91. }
  92. }