Daniel-t / node-red-contrib-aws

A collection of Node-RED nodes for AWS.
Apache License 2.0
57 stars 59 forks source link

Docs required on "InstanceIds" field syntax under EC2 start instances #39

Closed renjitrk closed 6 years ago

renjitrk commented 6 years ago

Hi, Getting "failed: InvalidParameterType: Expected params.InstanceIds to be an Array" error while using StartInstance Operation under AWS EC2. Tried all possible sytaxs, but could not get anything working. Examples tried: ['i-abcd1234'] ; {"InstanceIds":["i-abcd1234"],"DryRun":false,"Force":true} ; {"InstanceIds":["i-abcd1234"]} ; "InstanceIds":["i-abcd1234"] Please help with the solution. Thanks, Renjith.

Daniel-t commented 6 years ago

Needs to be looked at. Ref https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/EC2.html#startInstances-property

renjitrk commented 6 years ago

Also, please note, on manually editing the 'InstanceIDs' field in node-red config file, the StartInstance node seems to work. Seems like some mapping issue. edited to something like this and it worked - ""payload": "[i-abcd1234]",".. Thanks