partition.hcl 978 B

12345678910111213141516171819202122232425262728293031
  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. common_services_account = "471284459109"
  8. common_profile = "${local.aws_partition == "aws-us-gov" ? "govcloud" : "commercial"}"
  9. account_map = {
  10. "prod" = [
  11. "045312110490", # mdr-prod-c2
  12. "425831147305", # mdr-prod-modelclient
  13. "369723129071", # mdr-prod-malware
  14. ],
  15. "test" = [
  16. "816914342178", # mdr-test-c2
  17. "449047653882", # mdr-test-modelclient
  18. "404265901253", # mdr-test-malware
  19. ],
  20. "common" = [
  21. "471284459109", # mdr-common-services
  22. ],
  23. }
  24. # flatten the map into a single list
  25. account_list = flatten([
  26. for env, accounts in local.account_map: accounts
  27. ])
  28. aws_marketplace_ubuntu_owner_id = "679593333241"
  29. }