account.hcl 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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 = "moose"
  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.96.0.0/16",
  22. ]
  23. splunk_asg_sizes = [ 1, 1, 1 ] # How many?
  24. splunk_volume_sizes = {
  25. "cluster_master" = {
  26. "swap": 8, # minimum: 8
  27. "/": 10, # minimum: 10
  28. "/home": 4, # minimum: 4
  29. "/var": 15, # minimum: 15
  30. "/var/tmp": 4, # minimum: 4
  31. "/var/log": 8, # minimum: 8
  32. "/var/log/audit": 8, # minimum: 8
  33. "/tmp": 4, # minimum: 4
  34. "/opt/splunk": 30, # No minimum; not in base image
  35. },
  36. "indexer" = {
  37. "swap": 8, # minimum: 8
  38. "/": 10, # minimum: 10
  39. "/home": 4, # minimum: 4
  40. "/var": 15, # minimum: 15
  41. "/var/tmp": 4, # minimum: 4
  42. "/var/log": 8, # minimum: 8
  43. "/var/log/audit": 8, # minimum: 8
  44. "/tmp": 4, # minimum: 4
  45. "/opt/splunk": 30, # No minimum; not in base image
  46. },
  47. "searchhead" = {
  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. "qcompliance" = {
  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. "heavy_forwarder" = {
  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. }
  81. account_tags = {
  82. "Client": local.splunk_prefix,
  83. }
  84. c2_account_standards_path = "../../mdr-test-c2/005-account-standards-c2"
  85. # For CIDR assignment, see https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation
  86. vpc_info = {
  87. "vpc-splunk" = {
  88. "name" = "vpc-splunk"
  89. "purpose" = "Splunk Systems (MOOSE)"
  90. "cidr" = "10.20.16.0/22",
  91. "tgw_attached" = true,
  92. },
  93. "vpc-system-services" = {
  94. "name" = "vpc-system-services",
  95. "purpose" = "Internal Services for Systems (not people)",
  96. "cidr" = "10.20.0.0/22",
  97. "tgw_attached" = false, # NOTE: This is attached via the transit gateway creation
  98. },
  99. "vpc-qualys" = {
  100. "name" = "vpc-qualys",
  101. "purpose" = "Security Scanning",
  102. "cidr" = "10.20.12.0/22",
  103. "tgw_attached" = true,
  104. },
  105. "vpc-interconnects" = {
  106. "name" = "vpc-interconnects",
  107. "purpose" = "Interconnections between AWS partitions",
  108. "cidr" = "10.179.128.0/22",
  109. "tgw_attached" = false,
  110. },
  111. "vpc-access" = {
  112. "name" = "vpc-access"
  113. "purpose" = "Systems providing restricted access, such as bastions and vpn concentrators"
  114. "cidr" = "10.20.20.0/22"
  115. "tgw_attached" = true,
  116. },
  117. "vpc-portal" = {
  118. "name" = "vpc-portal"
  119. "purpose" = "The Customer Portal"
  120. "cidr" = "10.20.32.0/24"
  121. "tgw_attached" = true,
  122. },
  123. "vpc-public" = {
  124. "name" = "vpc-public"
  125. "purpose" = "Publicly Accessible Infrastructure Services, such as GHE and Jira"
  126. "cidr" = "10.20.24.0/22"
  127. "tgw_attached" = true,
  128. },
  129. "vpc-private-services" = {
  130. "name" = "vpc-private-services"
  131. "purpose" = "Private XDR Services for XDR users"
  132. "cidr" = "10.20.28.0/22"
  133. "tgw_attached" = true,
  134. },
  135. }
  136. instance_types = {
  137. "alsi-master" = "t3a.small",
  138. "alsi-worker" = "t3a.small",
  139. "splunk-cm" = "t3a.small", # legacy: t2.small
  140. #"splunk-indexer" = "t3a.small", # legacy: t2.small, but whats the point if we don't have instance storage.
  141. #"splunk-indexer" = "i3en.large", # legacy: t2.small, but whats the point if we don't have instance storage.
  142. #"splunk-indexer" = "m5d.large", # these are 1/2 the price of i3en.larges. 8GB RAM, 75GB storage
  143. "splunk-indexer" = "m5d.xlarge", # 16GB RAM, 150GB SSD
  144. "splunk-hf" = "t3a.small", # legacy: t2.medium
  145. "splunk-sh" = "t3a.small", # legacy: ? not sure
  146. "qcompliance" = "t3a.small", # legacy: ? not sure
  147. }
  148. # TODO: The instance types below should be moved to the instance_type map above
  149. # DNS Resolver
  150. resolver_instance_type = "t3a.micro"
  151. # Bastion
  152. bastion_instance_type = "t3a.micro"
  153. # Salt Master
  154. salt_master_instance_type = "t3a.large"
  155. # Mail Relay Server
  156. mailrelay_instance_type = "t3a.micro"
  157. # OpenVPN Server
  158. openvpn_instance_type = "t3a.medium"
  159. # Proxy Server
  160. proxy_server_instance_type = "t3a.micro"
  161. # Repo Server
  162. repo_server_instance_type = "t3a.micro"
  163. # Vault Server
  164. vault_server_instance_type = "t3a.micro"
  165. # Sensu Server
  166. sensu_server_instance_type = "t3a.medium"
  167. # ALSI Servers
  168. alsi_workers = 2
  169. alsi_splunk_nlb = true # splunk://moose-alsi-splunk.xdr{,test}.accenturefederalcyber.com:9997 and 9998
  170. alsi_elastic_alb = true # https://moose-alsi-elastic.xdr{,test}.accenturefederalcyber.com -> 9200
  171. alsi_hec_alb = true # https://moose-alsi-hec.xdr{,test}.accenturefederalcyber.com -> 8080
  172. # For testing:
  173. # Note: instead of changing this here, you can pass parameters to terragrunt on the CLI, such as:
  174. # TFVAR_create_test_instance=true TFVAR_test_instance_ami=base terragrunt apply
  175. create_test_instance = false
  176. # Extra customization if you want it
  177. #test_instance_key_name = "fdamstra" # They with which to provision the test instance
  178. #test_instance_ami = "base" # default = minion
  179. #test_instance_type = "t3a.micro" # default = t3a.micro
  180. # AS Number used for various resources, but not every account needs one.
  181. asn = 64710 # changing this replaces the gateway
  182. # Interconnects
  183. interconnect_asn = 64777
  184. interconnects_instance_type = "t3a.micro"
  185. interconnects_key_name = "fdamstra" # DO NOT CHANGE
  186. interconnects_count = 2
  187. interconnect_instances_path = "../018-interconnect-instances"
  188. # Qualys Scanners
  189. qualys_personalization_codes = {
  190. standard = "21009597903247"
  191. preauthorized = "21005906078774"
  192. }
  193. # Qualys Connector
  194. qualys_connector_externalid = "1601148045651" # Needs to come from the qualys console
  195. }