Skip to content

Commit

Permalink
confirming environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass committed May 9, 2024
1 parent 2960af4 commit a8267e9
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 48 deletions.
6 changes: 3 additions & 3 deletions tofu/environments/prod/data-store/cache/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ dependency "backend" {
}

locals {
environment = get_env("environment")
name_prefix = get_env("name_prefix")
region = get_env("region")
environment = get_env("TF_VAR_environment")
name_prefix = get_env("TF_VAR_name_prefix")
region = get_env("TF_VAR_region")

project_tags = include.root.locals.tags
environment_tags = include.environment.locals.tags
Expand Down
6 changes: 3 additions & 3 deletions tofu/environments/prod/data-store/database/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ dependency "backend" {
}

locals {
environment = get_env("environment")
name_prefix = get_env("name_prefix")
region = get_env("region")
environment = get_env("TF_VAR_environment")
name_prefix = get_env("TF_VAR_name_prefix")
region = get_env("TF_VAR_region")

project_tags = include.root.locals.tags
environment_tags = include.environment.locals.tags
Expand Down
6 changes: 3 additions & 3 deletions tofu/environments/prod/network/vpc/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ terraform {
}

locals {
environment = get_env("environment")
name_prefix = get_env("name_prefix")
region = get_env("region")
environment = get_env("TF_VAR_environment")
name_prefix = get_env("TF_VAR_name_prefix")
region = get_env("TF_VAR_region")

project_tags = include.root.locals.tags
environment_tags = include.environment.locals.tags
Expand Down
6 changes: 3 additions & 3 deletions tofu/environments/prod/services/backend-infra/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ dependency "vpc" {
}

locals {
environment = get_env("environment")
name_prefix = get_env("name_prefix")
region = get_env("region")
environment = get_env("TF_VAR_environment")
name_prefix = get_env("TF_VAR_name_prefix")
region = get_env("TF_VAR_region")

project_tags = include.root.locals.tags
environment_tags = include.environment.locals.tags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ dependency "cache" {
}

locals {
environment = get_env("environment")
name_prefix = get_env("name_prefix")
region = get_env("region")
environment = get_env("TF_VAR_environment")
name_prefix = get_env("TF_VAR_name_prefix")
region = get_env("TF_VAR_region")
//project = include.root.locals.project
//environment = include.env.locals.environment
short_name = include.root.locals.short_name
Expand Down
6 changes: 3 additions & 3 deletions tofu/environments/prod/services/frontend/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ dependency "backend" {
}

locals {
environment = get_env("environment")
name_prefix = get_env("name_prefix")
region = get_env("region")
environment = get_env("TF_VAR_environment")
name_prefix = get_env("TF_VAR_name_prefix")
region = get_env("TF_VAR_region")

project_tags = include.root.locals.tags
environment_tags = include.environment.locals.tags
Expand Down
6 changes: 3 additions & 3 deletions tofu/environments/stage/data-store/cache/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ dependency "backend" {
}

locals {
environment = get_env("environment")
name_prefix = get_env("name_prefix")
region = get_env("region")
environment = get_env("TF_VAR_environment")
name_prefix = get_env("TF_VAR_name_prefix")
region = get_env("TF_VAR_region")

project_tags = include.root.locals.tags
environment_tags = include.environment.locals.tags
Expand Down
6 changes: 3 additions & 3 deletions tofu/environments/stage/data-store/database/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ dependency "backend" {
}

locals {
environment = get_env("environment")
name_prefix = get_env("name_prefix")
region = get_env("region")
environment = get_env("TF_VAR_environment")
name_prefix = get_env("TF_VAR_name_prefix")
region = get_env("TF_VAR_region")

project_tags = include.root.locals.tags
environment_tags = include.environment.locals.tags
Expand Down
24 changes: 12 additions & 12 deletions tofu/environments/stage/network/vpc/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions tofu/environments/stage/network/vpc/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ terraform {
}

locals {
environment = get_env("environment")
name_prefix = get_env("name_prefix")
region = get_env("region")
environment = get_env("TF_VAR_environment")
name_prefix = get_env("TF_VAR_name_prefix")
region = get_env("TF_VAR_region")

project_tags = include.root.locals.tags
environment_tags = include.environment.locals.tags
Expand Down
6 changes: 3 additions & 3 deletions tofu/environments/stage/services/backend-infra/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ dependency "vpc" {
}

locals {
environment = get_env("environment")
name_prefix = get_env("name_prefix")
region = get_env("region")
environment = get_env("TF_VAR_environment")
name_prefix = get_env("TF_VAR_name_prefix")
region = get_env("TF_VAR_region")

project_tags = include.root.locals.tags
environment_tags = include.environment.locals.tags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ dependency "cache" {
}

locals {
environment = get_env("environment")
name_prefix = get_env("name_prefix")
region = get_env("region")
environment = get_env("TF_VAR_environment")
name_prefix = get_env("TF_VAR_name_prefix")
region = get_env("TF_VAR_region")
project = include.root.locals.project
//environment = include.env.locals.environment
short_name = include.root.locals.short_name
Expand Down
6 changes: 3 additions & 3 deletions tofu/environments/stage/services/frontend/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ dependency "backend" {
}

locals {
environment = get_env("environment")
name_prefix = get_env("name_prefix")
region = get_env("region")
environment = get_env("TF_VAR_environment")
name_prefix = get_env("TF_VAR_name_prefix")
region = get_env("TF_VAR_region")

project_tags = include.root.locals.tags
environment_tags = include.environment.locals.tags
Expand Down

0 comments on commit a8267e9

Please sign in to comment.