account.hcl 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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-nihors"
  6. account_alias = "mdr-prod-nihors"
  7. aws_account_id = "022090475570"
  8. instance_termination_protection = true # set to true for production!
  9. splunk_prefix = "nihors"
  10. splunk_data_sources = [
  11. "137.187.0.0/16", # Provided by Vikas @ NIH 2020-12-09
  12. "128.231.0.0/16", # Provided by Vikas @ NIH 2020-12-09
  13. "165.112.0.0/16", # Provided by Vikas @ NIH 2020-12-09
  14. "156.40.208.0/20", # Derived from our VPC Flow Logs deny logs 2020-12-11
  15. ]
  16. splunk_legacy_cidr = [ ] # Should not be needed for new customers
  17. splunk_asg_sizes = [ 1, 1, 1 ] # How many indexers in each site
  18. account_tags = { }
  19. c2_account_standards_path = "../../mdr-prod-c2/005-account-standards-c2" # TODO: Subsitute with test or prod
  20. # For CIDR assignment, see https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation
  21. vpc_info = {
  22. "vpc-splunk" = {
  23. "name" = "vpc-splunk",
  24. "purpose" = "Splunk Systems (NIH-ORS)", # TODO: Substitute with Customer Name
  25. "cidr" = "10.42.20.0/22",
  26. "tgw_attached" = true
  27. }
  28. }
  29. # For testing
  30. create_test_instance = false
  31. # Qualys Connector - See https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/Qualys
  32. qualys_connector_externalid = "LATER" # Needs to come from the qualys console
  33. # End of TODO
  34. # Splunk instance sizes can be customized
  35. # TODO: Set these appropriately in the skeleton for prod
  36. instance_types = {
  37. "splunk-cm" = "t3a.large", # legacy: t2.small
  38. "splunk-indexer" = "i3en.xlarge", # legacy: t2.small, but whats the point if we don't have instance storage.
  39. "splunk-hf" = "t3a.xlarge", # legacy: t2.medium
  40. "splunk-sh" = "t3a.xlarge", # legacy: ? not sure
  41. }
  42. # Splunk Volume Sizes are probably fine at defaults
  43. splunk_volume_sizes = {
  44. "cluster_master" = {
  45. "swap": 8, # minimum: 8
  46. "/": 10, # minimum: 10
  47. "/home": 4, # minimum: 4
  48. "/var": 15, # minimum: 15
  49. "/var/tmp": 4, # minimum: 4
  50. "/var/log": 8, # minimum: 8
  51. "/var/log/audit": 8, # minimum: 8
  52. "/tmp": 4, # minimum: 4
  53. "/opt/splunk": 30, # No minimum; not in base image
  54. },
  55. "indexer" = {
  56. "swap": 8, # minimum: 8
  57. "/": 10, # minimum: 10
  58. "/home": 4, # minimum: 4
  59. "/var": 15, # minimum: 15
  60. "/var/tmp": 4, # minimum: 4
  61. "/var/log": 8, # minimum: 8
  62. "/var/log/audit": 8, # minimum: 8
  63. "/tmp": 4, # minimum: 4
  64. "/opt/splunk": 30, # No minimum; not in base image
  65. },
  66. "searchhead" = {
  67. "swap": 8, # minimum: 8
  68. "/": 10, # minimum: 10
  69. "/home": 4, # minimum: 4
  70. "/var": 15, # minimum: 15
  71. "/var/tmp": 4, # minimum: 4
  72. "/var/log": 8, # minimum: 8
  73. "/var/log/audit": 8, # minimum: 8
  74. "/tmp": 4, # minimum: 4
  75. "/opt/splunk": 30, # No minimum; not in base image
  76. },
  77. "heavy_forwarder" = {
  78. "swap": 8, # minimum: 8
  79. "/": 10, # minimum: 10
  80. "/home": 4, # minimum: 4
  81. "/var": 15, # minimum: 15
  82. "/var/tmp": 4, # minimum: 4
  83. "/var/log": 8, # minimum: 8
  84. "/var/log/audit": 8, # minimum: 8
  85. "/tmp": 4, # minimum: 4
  86. "/opt/splunk": 30, # No minimum; not in base image
  87. },
  88. }
  89. }