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 23, 2024
1 parent
7ad2759
commit d181de1
Showing
3 changed files
with
30 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
resource "aws_ecr_repository" "aws_ecr_repository" { | ||
name = "${var.ecr_repository_name}-${var.environment}" | ||
image_tag_mutability = "MUTABLE" | ||
|
||
image_scanning_configuration { | ||
scan_on_push = true | ||
} | ||
|
||
tags = { | ||
env = var.environment | ||
name = "${var.ecr_repository_name}-${var.environment}" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
output "ecr_url" { | ||
description = "The ECR URL." | ||
value = try(aws_ecr_repository.aws_ecr_repository.repository_url, "") | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
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" | ||
} |