Skip to content

Commit

Permalink
[#849] Add a registry for the analytics-dashboard module
Browse files Browse the repository at this point in the history
A registry has been incorporated for the analytics-dashboard module
within the Terraform configuration. This modification introduces a new
module named "govtool-ecr-analytics-dashboard" sourced from
"./modules/ecr" with the repository name set to "analytics-dashboard."
By including this new module, the analytics-dashboard component is now
integrated into the infrastructure setup, aligning with the user story's
objective of configuring the sanchogov.tools sub-domain for the
analytics service.
  • Loading branch information
placek committed Apr 24, 2024
1 parent 66fa5f6 commit 6a70dec
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 @@ -36,6 +36,11 @@ module "govtool-ecr-metadata-validation" {
repo_name = "metadata-validation"
}

module "govtool-ecr-analytics-dashboard" {
source = "./modules/ecr"
repo_name = "analytics-dashboard"
}

resource "aws_iam_policy" "cicd_ecr" {
name = "CICD_ECR"
policy = jsonencode({
Expand All @@ -51,7 +56,8 @@ resource "aws_iam_policy" "cicd_ecr" {
module.govtool-ecr-backend-base.repo_arn,
module.govtool-ecr-frontend.repo_arn,
module.govtool-ecr-status-service.repo_arn,
module.govtool-ecr-metadata-validation.repo_arn
module.govtool-ecr-metadata-validation.repo_arn,
module.govtool-ecr-analytics-dashboard.repo_arn
]
},
{
Expand Down Expand Up @@ -125,6 +131,10 @@ output "govtool-ecr-metadata-validation-url" {
value = module.govtool-ecr-metadata-validation.repo_url
}

output "govtool-ecr-analytics-dashboard-url" {
value = module.govtool-ecr-analytics-dashboard.repo_url
}

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

0 comments on commit 6a70dec

Please sign in to comment.