Sign inSign up

direktiv/amazon-sns

By direktiv

•Updated almost 5 years ago

Image
0

910

direktiv/amazon-sns repository overview

⁠Amazon SNS

Writes a message to Amazon's Simple Notification Service

⁠Direktiv

An example workflow of writing 'Hello World!' to the notification service.

id: write-helloworld
functions:
- id: write
  image: direktiv/amazon-sns:v1
description: "Writes 'Hello World!' to an Amazon Simple Notification Service"
states:
- id: write-message
  type: action
  action:
    function: write
    input: jq(.)

⁠Input

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

input:
  key: jq(.secrets.AMAZON_KEY)
  secret: jq(.secrets.AMAZON_SECRET)
  region: "ap-southeast-2"
  "topic-arn": jq(.secrets.TOPIC_ARN)
  message: "Hello World!"
}

⁠Output

If the action is successful, no output will be returned.

⁠Error

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

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

Tag summary

Content type

Image

Digest

Size

3 MB

Last updated

almost 5 years ago

docker pull direktiv/amazon-sns