node-red-contrib-simple-aws-sdk

0.0.1 • Public • Published

node-red-contrib-simple-aws-sdk

Feature

Released

Date Version Description
2018-07-01 0.0.1 Released

Install

npm install --save node-red-contrib-simple-aws-sdk

Usage

Inputs

AWS.Config

  • msg.aws.config.accessKeyId
  • msg.aws.config.secretAccessKey
  • msg.aws.config.region

Service

  • msg.aws.service

Method

  • msg.aws.method

Params

  • msg.aws.params

Outputs

AWS SDK Response

  • msg.payload

Example

Example Flows

[
    {
        "id": "4ee8f7d2.1711d8",
        "type": "simple-aws-sdk",
        "z": "4fd54dd0.9ec404",
        "name": "simple aws-sdk",
        "x": 480,
        "y": 144,
        "wires": [
            [
                "914b6496.cb84e8"
            ]
        ]
    },
    {
        "id": "cd5c6241.e822",
        "type": "template",
        "z": "4fd54dd0.9ec404",
        "name": "set aws-sdk",
        "field": "aws",
        "fieldType": "msg",
        "format": "json",
        "syntax": "mustache",
        "template": "{\n    \"config\": {\n        \"accessKeyId\": \"AKXXXXXXXXXXXXXXXXNQ\",\n        \"secretAccessKey\": \"flxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxrF\",\n        \"region\": \"us-east-1\"\n    },\n    \"service\": \"Firehose\",\n    \"method\": \"putRecord\",\n    \"params\": {\n        \"DeliveryStreamName\": \"foo-51-sensor-raw-data-stream\",\n        \"Record\": {\n            \"Data\": \"foobar\\n\"\n        }\n    }\n}\n",
        "output": "json",
        "x": 294,
        "y": 144,
        "wires": [
            [
                "4ee8f7d2.1711d8"
            ]
        ]
    },
    {
        "id": "387bb3d6.ea298c",
        "type": "inject",
        "z": "4fd54dd0.9ec404",
        "name": "inject",
        "topic": "",
        "payload": "",
        "payloadType": "str",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 130,
        "y": 144,
        "wires": [
            [
                "cd5c6241.e822"
            ]
        ]
    },
    {
        "id": "914b6496.cb84e8",
        "type": "debug",
        "z": "4fd54dd0.9ec404",
        "name": "",
        "active": true,
        "console": "false",
        "complete": "false",
        "x": 678,
        "y": 144,
        "wires": []
    }
]

Dependents (0)

Package Sidebar

Install

npm i node-red-contrib-simple-aws-sdk

Weekly Downloads

0

Version

0.0.1

License

Apache-2.0

Unpacked Size

29.2 kB

Total Files

7

Last publish

Collaborators

  • high-u