This activity allows you to update/get/delete a device shadow on AWS.
This activity comes out of the box with the Flogo Web UI
flogo install github.com/fm-tibco/awsshadow
Inputs and Outputs:
{
"input":[
{
"name": "thingName",
"type": "string",
"required": true
},
{
"name": "op",
"type": "string",
"required": true,
"allowed" : ["GET", "UPDATE", "DELETE"]
}
],
"output":[
{
"name": "result",
"type": "object"
}
]
}
Name | Required | Description |
---|---|---|
thingName | true | The name of the "thing" in Aws IoT |
op | true | The Aws Iot shadow operation to perform |
Configure a task in flow to update the device shadow of 'raspberry-pi' with a reported temp of "50".
{
"id": "shadow_update",
"name": "Update AWS Device Shadow",
"activity": {
"ref": "github.com/fm-tibco/awsshadow",
"input": {
"thingName": "raspberry-pi",
"op": "UPDATE",
"reported": { "temp":"50" }
}
}
}
To Configure AWS credentials see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html