Files and Cloud Storage
Besides databases, the platform can read and write CSV files: in a local folder, on a file share mounted on the workers, or in S3 and S3-compatible storage. It can also read configuration and script files from S3 or Google Cloud Storage.
Where files can be
| Location | URL | Page |
|---|---|---|
A local folder, or a file share mounted on the worker |
||
Amazon S3, or S3-compatible storage such as MinIO |
|
|
XML files, from an XSD schema |
|
For how CSV input is laid out, how files are read and what the output looks like, see CSV Support.
Configuration and script files
The TDK CLI can read files from cloud storage, including script files for the scripting transformer:
-
S3: configuration and script files. Set
TDK_AWS_ENABLED=true. -
Google Cloud Storage: configuration, inventory and script files. Set
TDK_GCP_ENABLED=true.
For example, a script file in S3:
tables:
- table_name_with_schema: "public.customers"
transformations:
- columns: ["custom_field"]
params:
type: scripting_transformer
language: JAVASCRIPT
script:
file: "s3://my-bucket/scripts/custom_transform.js"
Workflows run from Governor’s web UI can’t load script files: write the script in the configuration instead.
Pages in this section
-
CSV Support: layout, file format, schema inference, configuration and S3.
-
Local and Network File Shares: folders mounted on the workers.
-
Amazon S3: CSV files, configuration files and credentials.
Related pages
-
CSV Files: generate and mask CSV data