-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update default-versions and common-variables gen
- Loading branch information
Showing
5 changed files
with
262 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,70 @@ | ||
| # ${environment_abbr}/_envcommon/common-variables.hcl | ||
|
|
||
| # --------------------------------------------------------------------------------------------------------------------- | ||
| # GLOBAL PARAMETERS | ||
| # These are the variables we pass to use across modules regardless of environment, i.e. these are the parameters | ||
| # that are common across all environments/accounts. | ||
| # --------------------------------------------------------------------------------------------------------------------- | ||
| locals { | ||
| organization = "${organization}" | ||
| project_name = "${project_name}" | ||
| project_number = "${project_number}" | ||
| project_role = "${project_role}" | ||
| state_bucket_prefix = "${state_bucket_prefix}" | ||
| state_table_name = "${state_table_name}" | ||
| environment_abbr = "${environment_abbr}" | ||
|
|
||
| route53_endpoints = { | ||
| route53_main = { | ||
| "account_id" = local.route53_info[local.environment_abbr]["account_id"] | ||
| "alias" = local.route53_info[local.environment_abbr]["alias"] | ||
| "us-gov-east-1" = local.route53_info[local.environment_abbr]["us-gov-east-1"] | ||
| "us-gov-west-1" = local.route53_info[local.environment_abbr]["us-gov-west-1"] | ||
| } | ||
| route53_main_legacy = { | ||
| "account_id" = local.route53_info["legacy"]["account_id"] | ||
| "alias" = local.route53_info["legacy"]["alias"] | ||
| "us-gov-east-1" = local.route53_info["legacy"]["us-gov-east-1"] | ||
| "us-gov-west-1" = local.route53_info["legacy"]["us-gov-west-1"] | ||
| } | ||
| } | ||
|
|
||
| route53_info = { | ||
| lab = { | ||
| "account_id" = "269244441389" | ||
| "alias" = "lab-gov-network-nonprod" | ||
| "us-gov-east-1" = "vpc-070595c5b133243dd" | ||
| "us-gov-west-1" = "vpc-08b7b4db6a5ddf9c1" | ||
| } | ||
| prod = { | ||
| "account_id" = "057405694017" | ||
| "alias" = "ent-ew-network-prod" | ||
| "us-gov-east-1" = "vpc-061325b37d748d17a" | ||
| "us-gov-west-1" = "vpc-0b22b68b90e47cb5f" | ||
| } | ||
| legacy = { | ||
| "account_id" = "107742151971" | ||
| "alias" = "do2-govcloud" | ||
| "us-gov-east-1" = "vpc-099a991da7c4eb8a5" | ||
| "us-gov-west-1" = "vpc-77877a12" | ||
| } | ||
| } | ||
|
|
||
| enterprise_ecr_account = { | ||
| lab = { | ||
| "account_id" = "269222635945" | ||
| "alias" = "lab-gov-shared-nonprod" | ||
| "profile" = "269222635945-lab-gov-shared-nonprod" | ||
| "region" = "us-gov-east-1" | ||
| } | ||
| prod = { | ||
| "account_id" = "067074201825" | ||
| "alias" = "ent-gov-shared-prod" | ||
| "profile" = "067074201825-ent-gov-shared-prod" | ||
| "region" = "us-gov-east-1" | ||
| } | ||
| } | ||
|
|
||
| route53_endpoints = ${jsonencode(route53_endpoints)} | ||
| eecr_info = { | ||
| account_id = local.enterprise_ecr_account[local.environment_abbr]["account_id"] | ||
| alias = local.enterprise_ecr_account[local.environment_abbr]["alias"] | ||
| profile = local.enterprise_ecr_account[local.environment_abbr]["profile"] | ||
| region = local.enterprise_ecr_account[local.environment_abbr]["region"] | ||
| } | ||
| } |
Oops, something went wrong.