globals.hcl 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # Set common variables for everything. This is automatically pulled in in the root terragrunt.hcl configuration to
  2. # feed forward to the child modules.
  3. locals {
  4. remote_state_bucket = "afsxdr-terraform-state" # Could be moved to environment/partition.
  5. binaries_bucket = "afsxdr-binaries" # Storage for binaries
  6. global_tags = {
  7. "Snapshot" = "Daily", # This will put it on some things where it doesn't belong, but seems useful overall
  8. #"Last_Updated" = timestamp() # while this is cool, its usefulness does not warrant the constant updates.
  9. }
  10. trusted_ips = [ # IPs for 'permissive' ingress. Used for the bastion host and for testing. Think twice before employing.
  11. "75.138.227.80/32", # Duane Waddle
  12. "24.11.231.98/32", # George Starcher
  13. "99.151.37.185/32", # Wesley Leonard
  14. "70.106.200.157/32", # John Reuther
  15. "73.10.53.113/32", # Rick Page Home
  16. "50.21.207.50/32", # Brad Poulton
  17. "70.160.60.248/32", # Brandon Naughton
  18. "99.56.213.129/32", # Fred Damstra
  19. "97.117.81.187/32", # Colby Williams
  20. ]
  21. portal_test_whitelist = [ # IPs for Portal Test and vmray
  22. "12.245.107.250/32", # DPS Office Legato
  23. "12.204.167.162/32", # DPS Office San Antonio
  24. "54.86.98.62/32", # DPS AWS User VPN
  25. "75.138.227.80/32", # Duane Waddle
  26. "24.11.231.98/32", # George Starcher
  27. "99.151.37.185/32", # Wesley Leonard
  28. "70.106.200.157/32", # John Reuther
  29. "73.10.53.113/32", # Rick Page Home
  30. "50.21.207.50/32", # Brad Poulton
  31. "70.160.60.248/32", # Brandon Naughton
  32. "99.56.213.129/32", # Frederick Damstra
  33. "97.117.81.187/32", # Colby Williams
  34. ]
  35. #Customer External IPs
  36. #To increase flexibility and to provide better documentation,
  37. #break up the IPs based on on-prem and not on-prem.
  38. #### AFS ON-PREM POP ####
  39. afs_pop = [
  40. "170.248.172.0/23",
  41. ]
  42. # AFS Azure POP external IPs
  43. afs_azure_pop = [
  44. "20.190.250.137/32", # EastUS2_External_Access
  45. "52.232.227.197/32", # Azure US-East Palo
  46. "52.185.64.173/32", # CentralUS_External_Access
  47. "52.242.225.98/32", # Azure US-Central Palo 20200721
  48. "52.177.84.83/32", # Lab_External_Access
  49. ]
  50. #### NGA ####
  51. nga_pop = [
  52. "199.16.64.3/32"
  53. ]
  54. xdr_interconnect = [
  55. "18.252.61.218/32",
  56. "18.252.67.171/32",
  57. "18.253.123.98/32",
  58. "18.253.98.90/32",
  59. ]
  60. # All of the "external" things that need access to publically
  61. # available C2 services, like Salt Masters, Repo Servers
  62. #
  63. # Structure is a list of maps, and the "description" value in the
  64. # map must be unique across the whole list or it will cause an error.
  65. #
  66. # TODO: the lists of IPs above need to be moved into this. I did not
  67. # attempt it NOW because of the upcoming change freeze and a desire to
  68. # not put in unnecessary changes.
  69. c2_services_external_ips = [
  70. {
  71. description = "NIH ORS LCP"
  72. cidr_blocks = [
  73. "137.187.0.0/16", # Provided by Vikas @ NIH 2020-12-09
  74. "128.231.0.0/16", # Provided by Vikas @ NIH 2020-12-09
  75. "165.112.0.0/16", # Provided by Vikas @ NIH 2020-12-09
  76. "156.40.208.0/20", # Derived from our VPC Flow Logs deny logs 2020-12-11
  77. ]
  78. },
  79. {
  80. description = "BP-OT-DEMO LCP"
  81. cidr_blocks = [
  82. "184.105.253.64/28", # Provided by OT IP address range for Houston CFC 2021-02-09
  83. ]
  84. },
  85. {
  86. description = "Test LCPs"
  87. cidr_blocks = [
  88. "18.252.65.137/32", # Test LCP in Govcloud (EIP in common-services-gov)
  89. "54.224.56.231/32", # Test LCP in Commercial (EIP in common-services)
  90. ]
  91. },
  92. {
  93. description = "BAS-Commerce CMPS"
  94. cidr_blocks = [
  95. "52.61.137.158/32", # 2021-04-06 From Daniel Dicke <daniel.dicke@asmr.com>
  96. "52.61.70.43/32", # 2021-04-15 yanked from VPC flow logs
  97. ]
  98. },
  99. {
  100. description = "FRTIB CMPS"
  101. cidr_blocks = [
  102. "52.61.113.202/32", # 2021-04-15 From Brian Nguyen brian.a.nguyen@accenturefederal.com
  103. ]
  104. },
  105. ]
  106. dns_zone_map = {
  107. "accenturefederalcyber.com" = "Z03575081VGXN3FUZ8ERU"
  108. "accenturefederalcyber.net" = "Z07771312N8X39HKP141M"
  109. "xdr.accenturefederalcyber.com" = "Z0083657A94URZM2TM87"
  110. "xdrtest.accenturefederalcyber.com" = "Z01677392W0QM639KU2KC"
  111. }
  112. repo_server_whitelist = concat(
  113. local.afs_pop,
  114. local.afs_azure_pop,
  115. local.nga_pop,
  116. [ "52.179.13.17/32", #???
  117. ],
  118. local.xdr_interconnect
  119. )
  120. key_pairs = {
  121. # Should be your username -> key pair
  122. "msoc-build" = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDv8N5N/ECQNKdqZKmjQqGkPiAtJc3WmWdpcZmhxUfplGRFW0IlHGH/wPUgkXXg+djWNpMyT+bqWI8B4Q18uw0Y+w09lN+F1t/vp2GNPYyIPHTGbr2u/r5RCuPXc5Gg6ogkneyAipPCPAhBRbvPaFtfLSJ94ba01LoFs4xgCIZXetr/3ql61OlLyB8vb8FohpW/7u32zzOVJwObA+QlDrRgivaYpwNBxd+No9HEz29dUVFMsKb3ko0GpBuu4pptbj73XxP0EeodMj0hee0FH4kEkZy80LVbg2WeTsq6Mi/FRZmeGt5f3oZEcfflGqYOPA4FmhTrc9O9pp36DDOGts79TeZ6abky+a0jRJQvaeN8x8DZ6PQXfVGpOrNst5zw0Z9EP3ZrFAkX6CYfZkckq0h5Fs+rcWLeUfM/ppZqcyNBDys7zxjFNdmWk86pgn+XvdCVIlsp99B6CzgDoAJkay09ROVqh39HTK7m2aKZoyFWZvUpaqUOlLkOb47bMQzIBSp8Yaoo4PozSg0lQOzkJl3JTR0OZksbeN0pFKY4qNcUcpgUU5mVYs5SXWAOsih51kC5s+0F6Uxt+iDjT9ASaF1O+Bl46UnhpwrtN4ckpHsFnp58mdfhJCUMjt6PX+UPxjRlSL21EkjGALybG2C0gPuoGo0x5bEsZl/gFrFJ+3r6gQ== MSOC Build Key",
  123. "fdamstra" = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDF3pGU9+HufgfEhPP7P0Lt7kqfGWLTGd6sfJgSypcSo3FP1XhwFOWkaNvZIpoIeQXhux5vTm+RoqYZ/3Gj7hcGMLdoHWArvLHD2AGjxbFnsmiCioQgsC/rYLBjiWNsDdVF5Arofby/RwzivMAi7yivhY4nGzXPsHZoucB0Wi34/9AmxbvXWv6ckuWkMjrXVe+uwFje3U7jQHRW9jQRpCRRfUjVA4FmH0PWqWFBlt/zqsDPOzbxNNhAvyrJho7jVBNjCLsq0++lT8BDKrYbaZiT0F2c9uIDRpHJSdjpqVCf9bghmeJWYMoNHAkGR7WCFjPCJ7QM57a2oRBtm1A/EWcr",
  124. }
  125. # Sensu Thresholds
  126. sensu_checks = {
  127. "dns": {
  128. "warning": "5.0", # warn if no resolution for 5 seconds
  129. "critical": "10.0" # critical if no resolution for 10 seconds
  130. },
  131. }
  132. # Some sane defaults we don't want to specify everywhere
  133. is_legacy = false # By default, accounts are not legacy accounts
  134. extra_ebs_key_admins = [ ]
  135. extra_ebs_key_users = [ ]
  136. extra_ebs_key_attachers = [ ]
  137. }