amazon-upload

command module
v0.0.0-...-8835833 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README


{ "image": "direktiv/amazon-upload", "desc": "Uploads a base64 encoded string to a blob on Amazon." }

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: direktiv/amazon-upload:v1
description: "Uploads a base64 encoded string to Amazon"
states:
- id: upload-file
  type: action
  action:
    function: upload
    input: jq(.)

Input

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

input:
  bucket": "test"
  region": "ap-southeast-2"
  "upload-name": "upload-name"
  key: jq(.secrets.AMAZON_KEY)
  secret: jq(.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"
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL