Skip to content

Commit d56a492

Browse files
committed
add host_url and client id to quartz-apis
1 parent 0b3279b commit d56a492

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

terraform/nowcasting/development/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This is the main terraform code for the UK platform. It is used to deploy the pl
99
0.5 - S3 bucket for forecasters
1010
0.6 - Database
1111
1.1 - API
12+
1.2 - UK-National API
1213
2.1 - NWP Consumer Secret
1314
2.2 - Satellite Consumer Secret
1415
2.3 - PV Secret
@@ -135,10 +136,12 @@ module "uk-national-quartz-api" {
135136
{ "name" : "AUTH0_DOMAIN", "value" : var.auth_domain },
136137
{ "name" : "AUTH0_AUDIENCE", "value" : var.auth_api_audience },
137138
{ "name" : "AUTH0_RULE_NAMESPACE", "value" : "https://openclimatefix.org"},
139+
{ "name" : "AUTH0_CLIENT_ID", "value": var.auth_client_id},
138140
{ "name" : "APITALLY_CLIENT_ID", "value" : var.apitally_client_id},
139141
# legacy, we shouldnt need this in the future,
140142
# but we need this for status in the mean time
141143
{ "name" : "DB_URL", "value" : module.database.forecast-database-secret-url },
144+
{ "name" : "HOST_URL", "value":"http://uk-development-uk-national-quartz-api.eu-west-1.elasticbeanstalk.com"}
142145
]
143146
container-name = "quartz-api"
144147
container-tag = var.uk-national-quartz-api
@@ -369,11 +372,13 @@ module "quartz-api" {
369372
{ "name" : "DB_URL", "value" : module.database.forecast-database-secret-url },
370373
{ "name" : "AUTH0_DOMAIN", "value" : var.auth_domain },
371374
{ "name" : "AUTH0_AUDIENCE", "value" : var.auth_api_audience },
375+
{ "name" : "AUTH0_CLIENT_ID", "value": var.auth_client_id},
372376
{ "name" : "SENTRY_DSN", "value" : var.sentry_dsn_api },
373377
{ "name" : "ENVIRONMENT", "value": local.environment},
374378
{ "name" : "DATA_PLATFORM_HOST", "value": module.data_platform_api.api_url},
375379
{ "name" : "DATA_PLATFORM_PORT", "value": "50051"},
376380
{ "name" : "APITALLY_CLIENT_ID", "value" : var.apitally_client_id},
381+
{ "name" : "HOST_URL", "value":"http://uk-development-quartz-api.eu-west-1.elasticbeanstalk.com"}
377382
]
378383
container-name = "quartz-api"
379384
container-tag = var.quartz-api

terraform/nowcasting/development/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ variable "airflow_auth_username" {
3838
default = "not-set"
3939
}
4040

41+
variable "auth_client_id" {
42+
description = "The Auth client id that should be used"
43+
default = "not-set"
44+
}
45+
4146
variable "airflow_auth_password" {
4247
description = "The Auth username for airflow that should be used"
4348
default = "not-set"

0 commit comments

Comments
 (0)