Skip to content

Commit

Permalink
add SAVE_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Nov 11, 2024
1 parent b658089 commit ea610be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terraform/nowcasting/development/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ module "forecasting_models_bucket" {
}

# 0.6
module "site_database_models_bucket" {
module "site_database_bucket" {
source = "../../modules/storage/s3-private"

region = var.region
Expand Down Expand Up @@ -850,6 +850,7 @@ module "pvsite_database_clean_up" {
{"name": "OCF_ENVIRONMENT", "value": local.environment},
{ "name" : "ENVIRONMENT", "value" : local.environment },
{ "name" : "SENTRY_DSN", "value" : var.sentry_dsn },
{ "name" : "SAVE_DIR", "value" : "s3://${module.site_database_bucket.bucket_id}/ecmwf/data/latest.zarr" },
]
container-secret_vars = [
{secret_policy_arn: module.pvsite_database.secret-policy.arn,
Expand All @@ -858,6 +859,6 @@ module "pvsite_database_clean_up" {
container-tag = var.database_cleanup_version
container-name = "openclimatefix/pvsite_database_cleanup"
container-registry = "docker.io"
s3-buckets = []
s3-buckets = [{ bucket_write_policy_arn = module.site_database_bucket.write_policy_arn }]
container-command = []
}

0 comments on commit ea610be

Please sign in to comment.