Skip to main content

S3

Library of functions for accessing data on S3.

Functions

Build

Builds a S3 location from an url.

Syntax:
S3.Build(bucket: string, path: string, region: optional string, accessKey: optional string, secretKey: optional string)
Parameters
  • bucket: The name of the bucket.

  • path: The path to the file in the bucket.

  • region: The region of the bucket, e.g. 'eu-west-1'.

  • accessKey: The AWS access key.

  • secretKey: The AWS secret key.

Returns
  • location: The S3 location.
Example:
S3.Build("my-bucket", "/folder/sub-folder/file")
note

If the S3 bucket is not registered in the credentials storage, then the region, accessKey and secretKey must be provided as arguments.