partition.hcl 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. # Statically setting the 'last known good' ami gives us some added flexibility
  11. # in building amis more regularly.
  12. #
  13. # Don't forget `lifecycle { ignore_changes = ["ami"] }` in yoru ec2
  14. # builds!
  15. amis = {
  16. "rhel7-base" = "ami-07bc8289a7cc97304",
  17. "rhel7-master" = "ami-0b2284c85a8635731",
  18. "rhel7-minion" = "ami-06df5afc7636bd980"
  19. }
  20. default_ami = local.amis["rhel7-minion"] # Allows us to easily change to a new base standard
  21. # If you need the raw list of all accounts, see `account_list` below
  22. account_map = {
  23. "prod" = [
  24. "721817724804", # mdr-prod-c2
  25. "738736370544", # mdr-prod-modelclient
  26. "876865127438", # mdr-prod-malware
  27. ],
  28. "test" = [
  29. "738800754746", # mdr-test-c2
  30. "701341250728", # mdr-test-modelclient
  31. "876942499057", # mdr-test-malware
  32. ],
  33. "common" = [
  34. "701290387780", # mdr-common-services
  35. ],
  36. }
  37. # flatten the map into a single list
  38. account_list = flatten([
  39. for env, accounts in local.account_map: accounts
  40. ])
  41. aws_marketplace_ubuntu_owner_id = "874634375141"
  42. partition_tags = {
  43. aws_partition = local.aws_partition
  44. }
  45. }