Sign inSign up

trentis/amazon-upload

By trentis

Updated about 5 years ago

Image
0

357

trentis/amazon-upload repository overview

Amazon Upload

Uploads a base64 encoded string to a blob on Amazon.

Direktiv

An example workflow of uploading a base64 encoded string to Amazon.

id: upload-object
functions:
- id: upload
  image: vorteil/amazon-upload:v1
description: "Uploads a base64 encoded string to Amazon"
states:
- id: upload-file
  type: action
  action:
    function: upload
    input: .

Input

The input required to run the above workflow properly is the following:

{
    "bucket": "test",
    "region": "ap-southeast-2",
    "upload-name": "upload-name",
    "key": .secrets.AMAZON_KEY,
    "secret": .secrets.AMAZON_SECRET,
    "data": "base64 encoded string"
}

Output

If the action is successful the no output will be printed.

Error

In the case that an error is encountered, it will present in the following format:

{
    "errorCode": "com.amazon-upload.error",
    "errorMsg": "Something went wrong"
}

Tag summary

Content type

Image

Digest

Size

3.4 MB

Last updated

about 5 years ago

docker pull trentis/amazon-upload