account.hcl 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. # Qualys Connector - See https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/Qualys
  30. qualys_connector_externalid = "LATER" # Needs to come from the qualys console
  31. # End of TODO
  32. # Splunk instance sizes can be customized
  33. # TODO: Set these appropriately in the skeleton for prod
  34. instance_types = {
  35. "splunk-cm" = "t3a.large", # legacy: t2.small
  36. "splunk-indexer" = "i3en.xlarge", # legacy: t2.small, but whats the point if we don't have instance storage.
  37. "splunk-hf" = "t3a.xlarge", # legacy: t2.medium
  38. "splunk-sh" = "t3a.xlarge", # legacy: ? not sure
  39. }
  40. # Splunk Volume Sizes are probably fine at defaults
  41. splunk_volume_sizes = {
  42. "cluster_master" = {
  43. "swap": 8, # minimum: 8
  44. "/": 10, # minimum: 10
  45. "/home": 4, # minimum: 4
  46. "/var": 15, # minimum: 15
  47. "/var/tmp": 4, # minimum: 4
  48. "/var/log": 8, # minimum: 8
  49. "/var/log/audit": 8, # minimum: 8
  50. "/tmp": 4, # minimum: 4
  51. "/opt/splunk": 30, # No minimum; not in base image
  52. },
  53. "indexer" = {
  54. "swap": 8, # minimum: 8
  55. "/": 10, # minimum: 10
  56. "/home": 4, # minimum: 4
  57. "/var": 15, # minimum: 15
  58. "/var/tmp": 4, # minimum: 4
  59. "/var/log": 8, # minimum: 8
  60. "/var/log/audit": 8, # minimum: 8
  61. "/tmp": 4, # minimum: 4
  62. "/opt/splunk": 30, # No minimum; not in base image
  63. },
  64. "searchhead" = {
  65. "swap": 8, # minimum: 8
  66. "/": 10, # minimum: 10
  67. "/home": 4, # minimum: 4
  68. "/var": 15, # minimum: 15
  69. "/var/tmp": 4, # minimum: 4
  70. "/var/log": 8, # minimum: 8
  71. "/var/log/audit": 8, # minimum: 8
  72. "/tmp": 4, # minimum: 4
  73. "/opt/splunk": 30, # No minimum; not in base image
  74. },
  75. "heavy_forwarder" = {
  76. "swap": 8, # minimum: 8
  77. "/": 10, # minimum: 10
  78. "/home": 4, # minimum: 4
  79. "/var": 15, # minimum: 15
  80. "/var/tmp": 4, # minimum: 4
  81. "/var/log": 8, # minimum: 8
  82. "/var/log/audit": 8, # minimum: 8
  83. "/tmp": 4, # minimum: 4
  84. "/opt/splunk": 30, # No minimum; not in base image
  85. },
  86. }
  87. }