12345678910111213141516171819202122232425262728293031 |
- # Set common variables for the environment. This is automatically pulled in in the root terragrunt.hcl configuration to
- # feed forward to the child modules.
- #
- # NOTE: There is only one copy of this, in the `common/` tree, and the others are symbolic links.
- locals {
- aws_partition = "aws-us-gov"
- common_services_account = "701290387780"
- common_profile = "${local.aws_partition == "aws-us-gov" ? "govcloud" : "commercial"}"
- account_map = {
- "prod" = [
- "721817724804", # mdr-prod-c2
- "738736370544", # mdr-prod-modelclient
- "876865127438", # mdr-prod-malware
- ],
- "test" = [
- "738800754746", # mdr-test-c2
- "701341250728", # mdr-test-modelclient
- "876942499057", # mdr-test-malware
- ],
- "common" = [
- "701290387780", # mdr-common-services
- ],
- }
- # flatten the map into a single list
- account_list = flatten([
- for env, accounts in local.account_map: accounts
- ])
- aws_marketplace_ubuntu_owner_id = "874634375141"
- }
|