Skip to content

Commit

Permalink
[#742] Create a status-service AWS registry
Browse files Browse the repository at this point in the history
The user story described a situation where the deployment to the Dev
environment was failing due to missing context for the status-service.
The expected behavior was for the deploy to succeed. In response, a
status-service AWS registry was created to address this missing context,
ensuring that the deploy to Dev can now successfully utilize the
status-service.
  • Loading branch information
placek committed Apr 22, 2024
1 parent ecd4cc9 commit e203a74
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion infra/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ module "govtool-ecr-frontend" {
repo_name = "frontend"
}

module "govtool-ecr-status-service" {
source = "./modules/ecr"
repo_name = "status-service"
}

resource "aws_iam_policy" "cicd_ecr" {
name = "CICD_ECR"
policy = jsonencode({
Expand All @@ -39,7 +44,8 @@ resource "aws_iam_policy" "cicd_ecr" {
Resource = [
module.govtool-ecr-backend.repo_arn,
module.govtool-ecr-backend-base.repo_arn,
module.govtool-ecr-frontend.repo_arn
module.govtool-ecr-frontend.repo_arn,
module.govtool-ecr-status-service.repo_arn
]
},
{
Expand Down Expand Up @@ -105,6 +111,10 @@ output "govtool-ecr-frontend-url" {
value = module.govtool-ecr-frontend.repo_url
}

output "govtool-ecr-status-service-url" {
value = module.govtool-ecr-status-service.repo_url
}

output "govtool-dev-sanchonet-frontend-domain" {
value = module.govtool-dev-sanchonet.frontend_domain
}
Expand Down

0 comments on commit e203a74

Please sign in to comment.