Skip to content

Commit

Permalink
add auth0 to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Oct 16, 2023
1 parent 5d2a494 commit dee52ad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions terraform/nowcasting/production/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ module "national_forecast" {
}

module "analysis_dashboard" {
source = "github.com/openclimatefix/ocf-infrastructure//terraform/modules/services/internal_ui?ref=15d5810"
source = "github.com/openclimatefix/ocf-infrastructure//terraform/modules/services/internal_ui?ref=5d2a494"

region = var.region
environment = var.environment
Expand All @@ -261,6 +261,10 @@ module "analysis_dashboard" {
secret = module.database.forecast-database-secret-url
read_policy_arn = module.database.iam-policy-forecast-db-read.arn
}
auth_config = {
auth0_domain = var.auth_domain
auth0_client_id = var.auth_dashboard_client_id
}
}


Expand Down Expand Up @@ -323,4 +327,5 @@ module "forecast_blend" {
}
loglevel= "INFO"

}
}

4 changes: 4 additions & 0 deletions terraform/nowcasting/production/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,7 @@ variable "forecast_blend_version" {
}


variable "auth_dashboard_client_id" {
description = "The Auth client id for the dashboard that should be used"
default = "not-set"
}

0 comments on commit dee52ad

Please sign in to comment.