-
-
Notifications
You must be signed in to change notification settings - Fork 22
add Primaries API #936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Primaries API #936
Changes from 4 commits
acd166f
5c4d97f
67b7449
8497def
557a05d
e919ee1
869ec0b
3f428eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,10 +17,11 @@ This is the main terraform code for the UK platform. It is used to deploy the pl | |
| 5.1 - PVSite database | ||
| 5.2 - PVSite API | ||
| 5.3 - PVSite ML bucket | ||
| 6.1 - Open Data PVnet | ||
| 7.0 - API Open Quartz Solar | ||
| 6.1 - Open Data PVnet (dev only) | ||
| 7.0 - API Open Quartz Solar (dev only) | ||
| 8.0 - Data Platform Database | ||
| 8.1 - Data Platform API | ||
| 9.0 - Primaries API | ||
|
|
||
| Variables used across all modules | ||
| ======*/ | ||
|
|
@@ -317,3 +318,32 @@ module "data_platform_api" { | |
| elbscheme="internal" | ||
| elb_ports=["80","50051"] | ||
| } | ||
|
|
||
|
|
||
| # 9.0 Primaries API | ||
| module "primaries-api" { | ||
| source = "../../modules/services/eb_app" | ||
| domain = local.domain | ||
| aws-region = var.region | ||
| aws-environment = local.environment | ||
| aws-subnet_id = module.networking.public_subnet_ids[0] | ||
| aws-vpc_id = module.networking.vpc_id | ||
| container-command = ["quartzapi"] | ||
| container-env_vars = [ | ||
| { "name" : "SOURCE", "value" : "dataplatform" }, | ||
| { "name" : "ROUTERS", "value" : "substations" }, | ||
| { "name" : "PORT", "value" : "80" }, | ||
| { "name" : "DB_URL", "value" : module.database.forecast-database-secret-url }, | ||
| { "name" : "AUTH0_DOMAIN", "value" : var.auth_domain }, | ||
| { "name" : "AUTH0_API_AUDIENCE", "value" : var.auth_api_audience }, | ||
| { "name" : "SENTRY_DSN", "value" : var.sentry_dsn_api }, | ||
| { "name" : "ENVIRONMENT", "value": local.environment}, | ||
| { "name" : "DATA_PLATFORM_HOST", "value": module.data_platform_api.api_url}, | ||
| { "name" : "DATA_PLATFORM_PORT", "value": "50051"}, | ||
| ] | ||
| container-name = "quartz-api" | ||
| container-tag = var.version-primaries-api | ||
| container-registry = "ghcr.io/openclimatefix" | ||
| eb-app_name = "primaries-api" | ||
|
||
| s3_bucket = [] | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.