partition.hcl 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # Set common variables for the environment. This is automatically pulled in in the root terragrunt.hcl configuration to
  2. # feed forward to the child modules.
  3. #
  4. # NOTE: There is only one copy of this, in the `common/` tree, and the others are symbolic links.
  5. locals {
  6. aws_partition = "aws"
  7. aws_partition_alias = "commercial"
  8. common_services_account = "471284459109"
  9. common_profile = "${local.aws_partition == "aws-us-gov" ? "govcloud" : "commercial"}"
  10. tfstate_region = "us-east-1"
  11. binaries_key = "key/b51760b2-d6e1-438a-afd4-1e56f5ac82ef"
  12. # Statically setting the 'last known good' ami gives us some added flexibility
  13. # in building amis more regularly.
  14. #
  15. # Don't forget `lifecycle { ignore_changes = ["ami"] }` in yoru ec2
  16. # builds!
  17. amis = {
  18. "rhel7-base" = "ami-0de46d7d1a164b307"
  19. "rhel7-master" = "ami-0114330666839f2b9"
  20. "rhel7-minion" = "ami-0425efbff72b3c702"
  21. "ubuntu1804-base" = "TBD"
  22. "ubuntu1804-minion" = "TBD"
  23. }
  24. default_ami = local.amis["rhel7-minion"] # Allows us to easily change to a new base standard
  25. # If you need the raw list of all accounts, see `account_list` below
  26. account_map = {
  27. "prod" = [
  28. "477548533976", # Legacy MDR Prod
  29. "045312110490", # mdr-prod-c2
  30. "425831147305", # mdr-prod-modelclient
  31. "369723129071", # mdr-prod-malware
  32. # These two apparently don't have the account-standards / skeleton
  33. # set up for them (yet?) For now I'm leaving them commented out
  34. # "821415252513", # mdr-prod-nihors
  35. # "153282776295", # mdr-prod-bas
  36. "815967312032", # mdr-prod-doed
  37. "752106061897", # mdr-prod-frtib
  38. "054411035179", # mdr-prod-ca-c19
  39. ],
  40. "test" = [
  41. "527700175026", # Legacy MDR Test
  42. "816914342178", # mdr-test-c2
  43. "449047653882", # mdr-test-modelclient
  44. "404265901253", # mdr-test-malware
  45. ],
  46. "common" = [
  47. "471284459109", # mdr-common-services
  48. "350838957895", # MDR Service Root
  49. # "035764279020", # MDR Playground / "Duane Test"
  50. "228011623757", # mdr-dev-ai
  51. "952430311316", # mdr-cyber-range
  52. ],
  53. }
  54. # flatten the map into a single list
  55. account_list = flatten([
  56. for env, accounts in local.account_map : accounts
  57. ])
  58. # This is similar to the account_map, but used for "what accounts am I responsible for"?
  59. responsible_accounts = {
  60. "prod" = concat(local.account_map["prod"], local.account_map["common"]),
  61. "test" = local.account_map["test"],
  62. "common" = concat(local.account_map["prod"], local.account_map["common"], local.account_map["test"]),
  63. }
  64. partition_tags = {
  65. aws_partition = local.aws_partition
  66. }
  67. customer_accounts = [
  68. "392153378647", # CA Dept of Health (MSOCI-1637)
  69. "083790825559", #web-dev
  70. "096166358174", #feedzai-dev
  71. "475533160228", #datalake-dev
  72. "588572764859", #ava-dev
  73. "612341127123", #cami-dev
  74. "663460946890", #generalservices-dev
  75. "697684692929", #analytics-dev
  76. "741253843590", #workloads-dev
  77. "826947492278", #dsop-dev
  78. "023060730861", #security-prod
  79. "067595219623", #ava-prod
  80. "119243463525", #dsop-prod
  81. "241888897263", #cami-prod
  82. "457319674785", #analytics-prod
  83. "476093827706", #datalake-prod
  84. "592479024479", #workloads-prod
  85. "625579355395", #web-prod
  86. "650564742306", #feedzai
  87. "689680997102", #generalservices-prod
  88. "892774870883", # frtib-alight
  89. "196740810102", # FRTIB-Alight customer
  90. "208374121982", # FRTIB-Alight customer
  91. "361451144797", # FRTIB-Alight customer
  92. "421358389265", # FRTIB-Alight customer
  93. "457704260925", # FRTIB-Alight customer
  94. "518442164384", # FRTIB-Alight customer
  95. "729220298640", # FRTIB-Alight customer
  96. "887194230768", # FRTIB-Alight customer
  97. "892774870883", # FRTIB-Alight customer
  98. "924667097788", # FRTIB-Alight customer
  99. "941092670900", # FRTIB-Alight customer
  100. "963174199075" # FRTIB-Alight customer
  101. ]
  102. }