Skip to content

Commit

Permalink
Use env variables from root
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronaldo Macapobre committed Jul 24, 2024
1 parent d181de1 commit e417962
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
6 changes: 3 additions & 3 deletions infrastructure/cloud/environments/sandbox/variables.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


variable test_s3_bucket_name {
type = string
variable "test_s3_bucket_name" {
type = string
description = "The name of the S3 bucket to create for testing"
}
}
27 changes: 16 additions & 11 deletions infrastructure/cloud/environments/sandbox/webapp.tf
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@


locals {
environment = "snd"
environment = "snd"
application_name = "jasper-aws"
}

module "security" {
source = "../../modules/security"
environment = local.environment
application_name = local.application_name
kms_key_name = "jasper-kms-key"
source = "../../modules/security"
environment = local.environment
application_name = local.application_name
kms_key_name = "jasper-kms-key"

}

module "storage" {
source = "../../modules/storage"
source = "../../modules/storage"
environment = local.environment
application_name = local.application_name
kms_key_name = module.security.kms_key_alias
test_s3_bucket_name = var.test_s3_bucket_name
depends_on = [module.security]
}

module "container" {
source = "../../modules/container"
environment = local.environment
application_name = local.application_name
kms_key_name = module.security.kms_key_alias
test_s3_bucket_name = var.test_s3_bucket_name
depends_on = [ module.security ]
}
}
5 changes: 1 addition & 4 deletions infrastructure/cloud/modules/container/variables.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@


variable "environment" {
type = string
description = "The environment to deploy the application to"
default = "dev"
}

variable "ecr_repository_name" {
type = string
description = "Name of AWS ECR Repository"
default = "aws-ecr-repository"
default = "aws_ecr_repository"
}

0 comments on commit e417962

Please sign in to comment.