diff --git a/infra/app/app-config/env-config/variables.tf b/infra/app/app-config/env-config/variables.tf index 3a0784de..efe1e8cb 100644 --- a/infra/app/app-config/env-config/variables.tf +++ b/infra/app/app-config/env-config/variables.tf @@ -71,8 +71,8 @@ variable "service_memory" { variable "service_override_extra_environment_variables" { type = map(string) description = <` - and``. For example if task_commandis: - ["python", "etl.py", ""] - Then if an object was uploaded tos3://somebucket/path/to/file.txt, the - task will execute thecommand: - pythonetl.pypath/to/file.txt - EOT + Configurations for jobs that trigger on a file upload event. + Each configuration is a map from the job name to an object defining the + event's source bucket ( the bucket the file was uploaded to), a + path prefix filter ( only files that match the path prefix will trigger + the job), and the task command to run ( this overrides the CMD entrypoint + in the container). + + To reference the file path and bucket that triggered the event, the task + command can optionally include the placeholder values`` + and``. For example if task_command is: + + ["python", "etl.py", ""] + + Then if an object was uploaded tos3://somebucket/path/to/file.txt, the + task will execute the command: + + python etl.py path/to/file.txt + EOT default = {} }