account.hcl 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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-c2-gov"
  5. account_alias = "afs-mdr-test-c2-gov"
  6. aws_account_id = "738800754746"
  7. instance_termination_protection = false # set to true for production!
  8. splunk_prefix = "moose2"
  9. # Additional sources that are allowed to send data, such as Customer LCPs, Azure, etc.
  10. splunk_data_sources = [
  11. "170.248.172.0/23", # ?
  12. "20.190.250.137/32", # ?
  13. "52.232.227.197/32", # ?
  14. "52.185.64.173/32", # ?
  15. "52.242.225.98/32", # ?
  16. "52.177.84.83/32", # ?
  17. "199.16.64.3/32", #?
  18. "99.56.213.129/32", # Fred Damstra's Home IP - For testing
  19. ]
  20. splunk_legacy_cidr = [ # Allow splunk ports to/from here, too
  21. "10.80.100.0/22",
  22. ]
  23. splunk_asg_sizes = [ 1, 1, 1 ] # How many?
  24. splunk_volume_sizes = {
  25. "swap": 8, # minimum: 8
  26. "/": 10, # minimum: 10
  27. "/home": 4, # minimum: 4
  28. "/var": 15, # minimum: 15
  29. "/var/tmp": 4, # minimum: 4
  30. "/var/log": 8, # minimum: 8
  31. "/var/log/audit": 8, # minimum: 8
  32. "/tmp": 4 # minimum: 4
  33. }
  34. account_tags = { }
  35. c2_account_standards_path = "../../mdr-test-c2/005-account-standards-c2"
  36. # For CIDR assignment, see https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation
  37. vpc_info = {
  38. "vpc-splunk" = {
  39. "name" = "vpc-splunk"
  40. "purpose" = "Splunk Systems (MOOSE)"
  41. "cidr" = "10.20.16.0/22",
  42. "tgw_attached" = true,
  43. },
  44. "vpc-system-services" = {
  45. "name" = "vpc-system-services",
  46. "purpose" = "Internal Services for Systems (not people)",
  47. "cidr" = "10.20.0.0/22",
  48. "tgw_attached" = false, # NOTE: This is attached via the transit gateway creation
  49. },
  50. "vpc-qualys" = {
  51. "name" = "vpc-qualys",
  52. "purpose" = "Security Scanning",
  53. "cidr" = "10.20.12.0/22",
  54. "tgw_attached" = true,
  55. },
  56. "vpc-interconnects" = {
  57. "name" = "vpc-interconnects",
  58. "purpose" = "Interconnections between AWS partitions",
  59. "cidr" = "10.179.128.0/22",
  60. "tgw_attached" = false,
  61. },
  62. "vpc-access" = {
  63. "name" = "vpc-access"
  64. "purpose" = "Systems providing restricted access, such as bastions and vpn concentrators"
  65. "cidr" = "10.20.20.0/22"
  66. "tgw_attached" = true,
  67. },
  68. "vpc-portal" = {
  69. "name" = "vpc-portal"
  70. "purpose" = "The Customer Portal"
  71. "cidr" = "10.20.32.0/24"
  72. "tgw_attached" = true,
  73. },
  74. "vpc-public" = {
  75. "name" = "vpc-public"
  76. "purpose" = "Publicly Accessible Infrastructure Services, such as GHE and Jira"
  77. "cidr" = "10.20.24.0/22"
  78. "tgw_attached" = true,
  79. },
  80. "vpc-private-services" = {
  81. "name" = "vpc-private-services"
  82. "purpose" = "Private XDR Services for XDR users"
  83. "cidr" = "10.20.28.0/22"
  84. "tgw_attached" = true,
  85. },
  86. }
  87. instance_types = {
  88. "splunk-cm" = "t3a.small", # legacy: t2.small
  89. "splunk-indexer" = "i3en.large", # legacy: t2.small, but whats the point if we don't have instance storage.
  90. "splunk-hf" = "t3a.small", # legacy: t2.medium
  91. "splunk-sh" = "t3a.small", # legacy: ? not sure
  92. }
  93. # TODO: The instance types below should be moved to the instance_type map above
  94. # DNS Resolver
  95. resolver_instance_type = "t3a.micro"
  96. resolver_instance_key_name = "fdamstra"
  97. # Bastion
  98. bastion_instance_type = "t3a.micro"
  99. # Salt Master
  100. salt_master_instance_type = "t3a.large"
  101. # Mail Relay Server
  102. mailrelay_instance_type = "t3a.micro"
  103. # OpenVPN Server
  104. openvpn_instance_type = "t3a.medium"
  105. # Proxy Server
  106. proxy_server_instance_type = "t3a.micro"
  107. # Repo Server
  108. repo_server_instance_type = "t3a.micro"
  109. # For testing
  110. create_test_instance = false
  111. test_instance_key_name = "fdamstra" # They with which to provision the test instance
  112. # Extra customization if you want it
  113. test_instance_ami = "base" # default = minion
  114. test_instance_type = "t3a.micro" # default = t3a.micro
  115. # AS Number used for various resources, but not every account needs one.
  116. asn = 64710 # changing this replaces the gateway
  117. # Interconnects
  118. interconnect_asn = 64777
  119. interconnects_instance_type = "t3a.micro"
  120. interconnects_key_name = "fdamstra" # DO NOT CHANGE
  121. interconnects_count = 2
  122. interconnect_instances_path = "../018-interconnect-instances"
  123. # Qualys Scanners
  124. qualys_personalization_codes = {
  125. standard = "21009597903247"
  126. preauthorized = "21005906078774"
  127. }
  128. # Qualys Connector
  129. qualys_connector_externalid = "1601148045651" # Needs to come from the qualys console
  130. }