Skip to content

Commit

Permalink
Move file_upload_jobs to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenyu committed Dec 21, 2023
1 parent fe1fd78 commit 449d3d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
14 changes: 14 additions & 0 deletions infra/app/app-config/env-config/file_upload_jobs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
locals {
# Configuration for default jobs to run in every environment.
# See description of `file_upload_jobs` variable in the service module (infra/modules/service/variables.tf)
# for the structure of this configuration object.
# One difference is that `source_bucket` is optional here. If `source_bucket` is not
# specified, then the source bucket will be set to the storage bucket's name
file_upload_jobs = {
# Example job configuration
# etl = {
# path_prefix = "etl/input",
# task_command = ["python", "-m", "flask", "--app", "app.py", "etl", "<object_key>"]
# }
}
}
12 changes: 0 additions & 12 deletions infra/app/app-config/env-config/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,4 @@ locals {
prefix = terraform.workspace == "default" ? "" : "${terraform.workspace}-"

bucket_name = "${local.prefix}${var.project_name}-${var.app_name}-${var.environment}"

# Configuration for default jobs to run in every environment.
# See description of `file_upload_jobs` variable in the service module (infra/modules/service/variables.tf)
# for the structure of this configuration object.
# One difference is that `source_bucket` is optional here. If `source_bucket` is not
# specified, then the source bucket will be set to the storage bucket's name
file_upload_jobs = {
etl = {
path_prefix = "etl/input",
task_command = ["python", "-m", "flask", "--app", "app.py", "etl", "<object_key>"]
}
}
}

0 comments on commit 449d3d0

Please sign in to comment.