Skip to content

Commit

Permalink
add to forecast, and dashbaord, and development/main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Oct 20, 2023
1 parent a64f36b commit b4df681
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions terraform/modules/services/forecast_generic/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ resource "aws_ecs_task_definition" "ecs-task-definition" {
{"name": "ENVIRONMENT", "value": var.environment},
{"name": "OCF_ENVIRONMENT", "value": var.environment},
{"name": "USE_ADJUSTER", "value": var.use_adjuster},
{"name": "SAVE_GSP_SUM", "value": var.pvnet_gsp_sum},
]

secrets : [
Expand Down
6 changes: 6 additions & 0 deletions terraform/modules/services/forecast_generic/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,10 @@ variable "use_adjuster" {
type = string
description = "Whether to use the adjuster"
default = "true"
}

variable "pvnet_gsp_sum" {
type = string
description = "Whether to make the pvnet_gsp_sum"
default = "false"
}
1 change: 1 addition & 0 deletions terraform/modules/services/internal_ui/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
ENVIRONMENT: $ENVIRONMENT
AUTH0_DOMAIN: $AUTH0_DOMAIN
AUTH0_CLIENT_ID: $AUTH0_CLIENT_ID
SHOW_PVNET_GSP_SUM: ${SHOW_PVNET_GSP_SUM}
container_name: ${EB_APP_NAME}
ports:
- 80:8501
6 changes: 6 additions & 0 deletions terraform/modules/services/internal_ui/eb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ resource "aws_elastic_beanstalk_environment" "eb-env" {
value = var.auth_config.auth0_domain
}

setting {
namespace = "aws:elasticbeanstalk:application:environment"
name = "SHOW_PVNET_GSP_SUM"
value = var.show_pvnet_gsp_sum
}

# =========== EB Settings =========== #

setting {
Expand Down
7 changes: 6 additions & 1 deletion terraform/modules/services/internal_ui/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,9 @@ variable "auth_config" {
auth0_client_id : "Auth0 Client id"
}
EOT
}
}

variable "show_pvnet_gsp_sum" {
description = "If to use the pvnet gsp sum"
default = "false"
}
4 changes: 3 additions & 1 deletion terraform/nowcasting/development/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ module "metrics" {
database_secret = module.database.forecast-database-secret
docker_version = var.metrics_version
iam-policy-rds-read-secret = module.database.iam-policy-forecast-db-read
use_pvnet_gsp_sum = "true"
}


Expand Down Expand Up @@ -273,7 +274,7 @@ module "forecast_pvnet" {
datadir = "data/latest"
}
loglevel= "INFO"

pvnet_gsp_sum = "true"
}

module "analysis_dashboard" {
Expand All @@ -299,6 +300,7 @@ module "analysis_dashboard" {
auth0_domain = var.auth_domain
auth0_client_id = var.auth_dashboard_client_id
}
show_pvnet_gsp_sum = "true"
}

module "forecast_blend" {
Expand Down

0 comments on commit b4df681

Please sign in to comment.