partition.hcl 1.5 KB

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