forked from bcgov/supreme-court-viewer
-
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.
- Loading branch information
Ronaldo Macapobre
committed
Jul 24, 2024
1 parent
d181de1
commit e417962
Showing
3 changed files
with
20 additions
and
18 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
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" | ||
} | ||
} |
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,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 ] | ||
} | ||
} |
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,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" | ||
} |