Skip to main content

aws-s3

Latest Versionv1.0.0
Input Content TypeAny
Incurs Usage

Sending data to S3 incurs usage costs after exceeding the free tier. See Golioth pricing for more information.

The aws-s3 destination sends data to an Amazon Web Services S3 bucket.

Parameters

ParameterTypeDescriptionRequired
namestringThe name of the AWS S3 bucket.
access_keystringThe access key for authentication.
access_secretstringThe access secret for authentication.
regionstringThe AWS region for the AWS S3 bucket.

Example Secrets

AWS_ACCESS_SECRET

wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY

Example Usage

    destination:
type: aws-s3
version: v1
parameters:
name: my-bucket
access_key: AKIAIOSFODNN7EXAMPLE
access_secret: $AWS_ACCESS_SECRET
region: us-east-1

Example Input

Binary data displayed as hex encoded for documentation purposes only.

00000000: 5249 4646 ffff ffff 5741 5645 666d 7420  RIFF....WAVEfmt
00000010: 1000 0000 0100 0100 c05d 0000 80bb 0000 .........]......
00000020: 0200 1000 6461 7461 ffff ffff eaff edff ....data........
00000030: f0ff f5ff f9ff feff 0100 0300 0800 0b00 ................
00000040: 0b00 0c00 0a00 0800 0500 0100 fbff f8ff ................

Example Output

Input data is uploaded to the AWS S3 bucket as an object with content unmodified.

Binary data displayed as hex encoded for documentation purposes only.

00000000: 5249 4646 ffff ffff 5741 5645 666d 7420  RIFF....WAVEfmt
00000010: 1000 0000 0100 0100 c05d 0000 80bb 0000 .........]......
00000020: 0200 1000 6461 7461 ffff ffff eaff edff ....data........
00000030: f0ff f5ff f9ff feff 0100 0300 0800 0b00 ................
00000040: 0b00 0c00 0a00 0800 0500 0100 fbff f8ff ................

Objects are created with name matching the event ID in a directory with name matching the device ID. An example directory structure is shown below.

/
├─ 664b9e889a9590ccfcf822b3/
│ ├─ 28ebd981-80ae-467f-b700-ba00e7c1e3ee
│ ├─ e47e5b46-d4e3-4bf1-a413-9fc71ec9f6b0
│ ├─ ...
├─ 66632a45658c93af0895a70e/
├─ .../