partition.hcl 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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-us-gov"
  7. aws_partition_alias = "govcloud"
  8. common_services_account = "701290387780"
  9. common_profile = "${local.aws_partition == "aws-us-gov" ? "govcloud" : "commercial"}"
  10. tfstate_region = "us-gov-east-1"
  11. binaries_key = "key/a3ed054e-73be-45b4-acf8-6d06cb18cff9"
  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-0b08c1f5f1c84d2e9"
  19. "rhel7-master" = "ami-0ceacf267454aba51"
  20. "rhel7-minion" = "ami-08505f005a686f476"
  21. "ubuntu1804-base" = "ami-0a84bd4b796860be8"
  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. "081915784976", # mdr-prod-bas
  29. "721817724804", # mdr-prod-c2
  30. "300401536936", # mdr-prod-ca-c19
  31. "520742937262", # mdr-prod-dc-c19
  32. "137793331041", # mdr-prod-doed
  33. "237704155425", # mdr-prod-frtib
  34. "520722177857", # mdr-prod-la-c19
  35. "555457296585", # mdr-prod-ma-c19
  36. "738736370544", # mdr-prod-modelclient
  37. "876865127438", # mdr-prod-malware
  38. "417441737377", # mdr-prod-nga
  39. "022090475570", # mdr-prod-nihors
  40. "417443073855", # mdr-prod-tiaas
  41. ],
  42. "test" = [
  43. "738800754746", # mdr-test-c2
  44. "876942499057", # mdr-test-malware
  45. "701341250728", # mdr-test-modelclient
  46. ],
  47. "common" = [
  48. "701290387780", # mdr-common-services
  49. ],
  50. }
  51. # flatten the map into a single list
  52. account_list = flatten([
  53. for env, accounts in local.account_map: accounts
  54. ])
  55. # This is similar to the account_map, but used for "what accounts am I responsible for"?
  56. responsible_accounts = {
  57. "prod" = concat(local.account_map["prod"], local.account_map["common"]),
  58. "test" = local.account_map["test"],
  59. "common" = concat(local.account_map["prod"], local.account_map["common"], local.account_map["test"]),
  60. }
  61. aws_marketplace_ubuntu_owner_id = "874634375141"
  62. partition_tags = {
  63. aws_partition = local.aws_partition
  64. }
  65. customer_accounts = [
  66. "738577959608", # AFS/CMPS AIP VA (No Ticket, email from Dalling in 10/2020)
  67. "902039776828", # AFS/CMPS FRTIB (MSOCI-1549)
  68. "314025119334", # AFS/CMPS BAS-Commerce (MSOCI-1554)
  69. ]
  70. }