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"
  7. aws_partition_alias = "commercial"
  8. common_services_account = "471284459109"
  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-0de46d7d1a164b307",
  18. "rhel7-master" = "ami-0114330666839f2b9",
  19. "rhel7-minion" = "ami-0425efbff72b3c702"
  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. "045312110490", # mdr-prod-c2
  26. "425831147305", # mdr-prod-modelclient
  27. "369723129071", # mdr-prod-malware
  28. ],
  29. "test" = [
  30. "816914342178", # mdr-test-c2
  31. "449047653882", # mdr-test-modelclient
  32. "404265901253", # mdr-test-malware
  33. ],
  34. "common" = [
  35. "471284459109", # 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 = "679593333241"
  43. }