account.hcl 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. c2_account_standards_path = "../../mdr-test-c2/005-account-standards-c2" # Subsitute with test or prod
  15. # For CIDR assignment, see https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation
  16. vpc_info = {
  17. "vpc-splunk" = {
  18. "name" = "vpc-splunk",
  19. "purpose" = "Splunk Systems (modelclient)", # Substitute with Customer Name
  20. "cidr" = "10.20.8.0/22",
  21. "tgw_attached" = true
  22. }
  23. }
  24. # For testing:
  25. # Note: instead of changing this here, you can pass parameters to terragrunt on the CLI, such as:
  26. # TFVAR_create_test_instance=true TFVAR_test_instance_ami=base terragrunt apply
  27. create_test_instance = false
  28. # Extra customization if you want it
  29. #test_instance_key_name = "fdamstra" # They with which to provision the test instance
  30. #test_instance_ami = "base" # default = minion
  31. #test_instance_type = "t3a.micro" # default = t3a.micro
  32. # Qualys Connector
  33. qualys_connector_externalid = "LATER" # Needs to come from the qualys console
  34. # End of TODO
  35. # Splunk instance sizes can be customized
  36. # TODO: Set these appropriately in the skeleton for prod
  37. instance_types = {
  38. "splunk-cm" = "t3a.small", # legacy: t2.small
  39. "splunk-indexer" = "i3en.large", # legacy: t2.small, but whats the point if we don't have instance storage.
  40. "splunk-hf" = "t3a.small", # legacy: t2.medium
  41. "splunk-sh" = "t3a.small", # 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. }