Amazon S3
The platform uses Amazon S3, and S3-compatible storage such as MinIO, in two ways: as the input or output of CSV workflows, and as a place for configuration and script files of the TDK CLI.
CSV input and output
Give an s3:// URL as the input or output of a CSV workflow:
s3://<endpoint>/<bucket>/<folder>/
For example, s3://s3.amazonaws.com/my-bucket/my-input-dir/, or s3://my-minio-server:9000/my-bucket/input-dir/. The URL can’t include a user name or password. The folder holds one sub-folder per table, as described in Directory layout.
- Credentials
-
With the CLI, pass the access key ID as the user name and the secret access key as the password:
--input-usernameand--input-passwordfor the input,--output-usernameand--output-passwordfor the output. See Credentials. - S3 client settings
-
Set these as environment variables on the CLI, or on Governor and its workers:
Variable What it sets TDK_S3_REGIONThe region, for example
eu-west-1. Not needed for MinIO.TDK_S3_PROTOCOLhttps(default) orhttp.TDK_S3_FORCE_PATH_STYLEtruefor path-style URLs. Required for MinIO. Defaultfalse.
CSV workflows also need the working directory: set TDK_WORKINGDIRECTORY_ENABLED=true and TDK_WORKINGDIRECTORY_PATH. For a complete example, see S3 Support.
Configuration and script files
To let the TDK CLI read its configuration file, and script files for the scripting transformer, from S3, set TDK_AWS_ENABLED=true. The CLI then finds AWS credentials through the AWS SDK credentials chain: environment variables, a profile, or the role of the instance, task or pod it runs in.
TDK_AWS_ENABLED=true also turns on AWS Secrets Manager, unless you set SECRETS_AWS_SECRET_MANAGER_ENABLED=false. See Secret Managers.
Script files work only with the CLI. Workflows run from Governor’s web UI can’t load them.
Permissions
Give the platform’s AWS identity only the access it needs: read on the input folder and on configuration and script files, and write on the output folder. For the policy the AWS Marketplace product needs, see AWS Marketplace.