Skip to content

storage:put

storage:put

File Upload tool for S3

Example with S3:

        {
            "tool": "storage:put",
            "parameters": {
                "location": "s3://{AWS_ACCESS_KEY}:{AWS_SECRET_KEY}@{BUCKET}/{PATH}",
                "files": [
                    "video.mp4",
                    "audio_en.mp4",
                    "audio_es.mp4",
                    "*.vtt", ...
                ]
            }
        }

The tool understands the wildcard expansion characters:
  - `\*` - matches everything
  - `?` - matches any single character
Parameter Properties Default Type Choice Description
location required A base URL from which files are downloaded (string)
files required [list value] Filenames to be downloaded before processing (list of strings)
overwrite optional false bool If set to true then existing files will be overwritten without any further precaution.
base_dir optional str A local directory to be used as target or source (default = '')
role_arn optional The role to be assumed for executing the tool