upload_s3
Type: Function
Upload files to S3.
This function can be used to upload to an AWS S3 bucket or to a MinIO self hosted bucket.
Give the bucket’s credentials write-only access, so that a collector cannot read or delete what other collectors uploaded. See Sending results somewhere.
| Argument | Type | Description |
|---|---|---|
file |
accessors.OSPath (required) | The file to upload |
name |
string | The name of the file that should be stored on the server |
accessor |
string | The accessor to use |
bucket |
string (required) | The bucket to upload to |
region |
string | The region the bucket is in |
credentials_key |
string | The AWS key credentials to use |
credentials_secret |
string | The AWS secret credentials to use |
credentials_token |
string | The AWS session token to use (only needed for temporary credentials) |
endpoint |
string | The Endpoint to use |
serverside_encryption |
string | The server side encryption method to use |
kms_encryption_key |
string | The server side KMS key to use |
s3upload_root |
string | Prefix for the S3 object |
skip_verify |
bool | Skip TLS Verification |
path_style |
bool | Use path style URLs if set |
secret |
string | Alternatively use a secret from the secrets service. Secret must be of type ‘AWS S3 Creds’ |
Required permissions: NETWORK, FILESYSTEM_READ
Platforms: macOS, Linux, Windows
Source: vql/tools/s3_upload_minio.go