daniel-t / node-red-contrib-aws Goto Github PK
View Code? Open in Web Editor NEWThis project forked from joeartsea/node-red-contrib-aws
A collection of Node-RED nodes for AWS.
License: Apache License 2.0
This project forked from joeartsea/node-red-contrib-aws
A collection of Node-RED nodes for AWS.
License: Apache License 2.0
From #20
Add a node that performs tagging functions
http://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/Welcome.html
I am trying to connect to AWS S3 using the S3 node. I am giving my accesskey ans secret key as required but after deploying my console is showing error "Flows stopped due to missing node types. Check logs for details." Please help. Console log shoes " Waiting for missing types to be registered:" I tried to uncomment the console.log in Please help.
[email protected] node_modules/node-red-contrib-aws
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
No Nodes? any assistance please?
Hi @Daniel-t
Your node-red contrib seems promissing, but I struggle a bit to use it. Where can I find how to configure the S3 node. I need to upload a base 64 coverted string to buffer in a PNG image to S3, so my question is where do I setup parameters:
I do not find these in the node itself... neither I do not know how I pass my buffer file to the node (payload)...
Regards
Thibaut
Hi,
I set the input msg object to have a json payload but I consistently get the error that "failed: InvalidParameterType: Expected params.Message to be a string"
**** The debug dump of the generated MSG object is given below:
msg : Object
object
_msgid: "2bf61ec7.a80782"
topic: ""
payload: object
default: "This is the default Message"
APNS_SANDBOX: "{ "aps" : { "alert" : "You have got email.", "badge" : 9,"sound" :"default"}}"
messageStructure: "json"
*** My function jS code is:
msg.messageStructure="json";
msg.payload={"default":"This is the default Message","APNS_SANDBOX":"{ "aps" : { "alert" : "You have got email.", "badge" : 9,"sound" :"default"}}"};
Does this actually work?
Thanks
Sean
Currently the aws config UI doesn't use a 'password' field to blank out the AWS API keys, so AWS credentials are shown when you configure the credentials.
Hey Daniel,
I am excited to get SNS node working in my flow.
My AccessID and Secret Key are for an Administrator-level role, so I should have access to send SNS message.
I am able to send a message manually from the SNS console.
Any ideas as to why I would be getting the "missing credentials" message?
Daniel, Can I contribute? I need deleteObject in S3.
Having AWS ES domains list and domain detail is a feature I'm really interesting in.
This can be don thanks to AWS CLI, having a node would be more than helpful.
I am successfully using the AWS DynamoDB node to scan a table and it is working great. One question I have is how difficult would it be to add a FilterExpression so that only part of the DynamoDB table is returned?
Would it be possible to add a subject parameter to the SNS publish node?
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.
i cannot set prefix to get list of objects from s3 bucket.
I get an arrow icon instead of an expected amazon icon.
Currently the S3 node stringifies data before it is put into a bucket. This means non-text files such as images cannot be saved.
The call is reaching the lambda, shown via the logs, but the input event is coming in as blank JSON.
Hello @Daniel-t,
I'm CEO from Menvia and we are working on some Node Red modules here.
One of them was a Node-RED AWS connection and we thought we can contribute a lot to the project to gain visibility and get other collaborators.
What do you think about joining efforts?
All the best,
Felipe
It is not possible to send a message to a Fifo queue. Only Standard queues are working. Fifo queues requires a MessageGroupId
parameter
Hi, i have two flows for saving on differents DBs. One flow messages are store on a Couch DB and the other one uses this node to store messages on DynamoDB. The problem is that some messages are not being saved on DynamoDB, so i think the problem is on the node itself. Is there any way to get ACK when a PUT is exectued? Thanks
When I install this package through node-red the installed version of aws-sdk is 2.4.0
The latest version is 2.384!
I need to run at least version 2.7, which supports .fifo sqs queues.
You could change your package.json to be:
"dependencies": { "aws-sdk": "^2" }
or
"dependencies": { "aws-sdk": "2.x.x" }
Hi, do you have Kinesis Firehose support in your plans?
hi guys great work on this! can we please look at enabling alternative authentication methods to AWS, as most larger networks use saml or saml2aws etc single sign on and the likes, if we could enable this, i think it would open things up to a wider audience who are looking to use node-red.
Hi,
I was investigating why this node wasn't being listed on flows.nodered.org
The problem is your package.json lists the DynamoDB file as DynamoDB.js
but the actual file is Dynamodb.js
. That means the flow library believes your node is missing a file so it refuses to list it.
If you want it to get indexed, you'll need to either fix your package.json or rename the file to match what is in package.json.
Nick
Hi
To make DynamoDB work I needed to fix in node-red-contrib-aws/Dynamodb.js line 43
var awsService = new AWS.Dynamodb( { 'region': node.region } );
was changed to
var awsService = new AWS.DynamoDB( { 'region': node.region } );
This is also in line with the AWS class documentation here: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html
Hope that helps.
Sebastian
Using the UpdateThingShadow operation the field to enter Endpoint information is not showing up. I installed node-red-contrib-aws through the palette manager in Node RED 0.18.4 (dockerized).
Requested from #30
"I think it would be better to provide both arguments so "Subject" can be all lower case in Node Red for consistency with everything else in Node Red."
Personally I'm not a fan of this, as it deviates from the AWS SDK which has parameters in LeadingUpperCase. Issue created for transparency and so others can '+1' it, if there is a good argument and sufficient demand I'll reconsider.
Hi,
I see wikki is coming soon, if you can explain how to use Kinesis it will be of great help.
thanks
I could not import the flow in /examples/flow.json, it has a few missing nodes.
I am fairly novice with Node-Red and can't figure out how to send the {msg.payload}
object from a previous node as message data to SQS...
I've successfully sent messages to SQS but the message body is {msg.payload}
, {{msg.payload}}
or similar as that is what I've set for the message body in the node.
The same goes for DynamoDB... I've successfully created Items if I add the JSON in the node but I'd like to push it in on the Input.
Am I missing something or is it only using the text added in the Nodes as "body" to send to AWS?
Hi
I have an issue when using the dynamodb node within a split sequence of an array of values.
I use an id part of the msg obtain sequentially after the split, but when I hit the dynamodb node, the output msg is transformed an only keep the values of the last msg of the sequence (last from the array). Is it a normal behaviour?
Some of the nodes - 'aws-config' and 'amazon s3' use the same name as the nodes in the node-red-node-aws nodes so they cannot be installed together.
Thank you for making such great code, I am using AWS services now, I would like to use some of your code to show some of AWS's services, but without the sample code, could you do some simple how to use the code? Or how to modify the payload or functionality that Node-red can use through the AWS API. thank you very much.
I'm behind a proxy and I've had to use 'proxy-agent' near the top of S3.js like this to get it to work:
var proxy = require('proxy-agent');
AWS.config.update({
httpOptions: { agent: proxy('http://webproxy:8080') }
});
This does work, but I don;t want to have to modify every single node that I want to use.
Is there a way to do this once and globally?
Endpoint:
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Endpoint.html
I need to configure endpoint, s3BucketEndpoint and s3ForcePathStyle. I'm not seeing how to configure things. I see how to configure region and access keys but there are tons of other configuration variables so I'm confused.
Example code:
const s3 = new S3({
region: 'us-east-1',
endpoint: 'http://localhost:4569',
s3BucketEndpoint: true,
s3ForcePathStyle: true
})
I cant get record using kinesis nodes. I am trying get shard iterator befonre get recoder there is an error. How can i downgrade aws nodes ? Using ibm node red console
Thanks for this add ons.
But would it not be more convenient to be able to chain the components?
ATM i have to prepend the Kinesis components with a function that stores the result from the last msg payload directly to msg:
getShardIteratorBuilder:
msg.ShardId = msg.payload.ShardId; return msg;
=> getRecords
Similar to EC2, cousl be great to have RDS nodes to :
Should be able to add to queue and remove from queue.
In the company I'm working, we handle hundreds of EC2 instances, all created usiong the same AWS account but internally charged back thanks to tags.
An interesting node is to list and filter EC2 instances.
Thanks to that, I should be able to monitor the EC2 charged to me and act in consequence
If files are downloaded using the GET method of the flow the files are getting corrupted. I tried with the below code also as said in the release. But it is not working. can you help.
msg.payload=Buffer.from(msg.payload.Body).toString("utf-8")
needs to be removed
Hi!
I'm trying to add an item to my DynamoDB table.
While it works if I input the item directly in the node's item field, I can't figure out how to do it dynamically via its msg input. I tried many things but every try so far yeilds this error: failed: InvalidParameterType: Expected params.Item to be a map
Could you put an example flow in the examples as I couldn't make it work with the example provided.
Thanks!
Add a node to support AWS IoT functionality
Please forgive a newbie if I'm missing something, but how does one actually specify query parameters on the DynamoDB query node? I have an existing database which I've connected to properly (the listtables node lists everything just fine), but the query node doesn't appear to have any attributes other than a table name input.
Thanks for all the work, looks great!
Initiator Node which subscribes to topics by the websocket api
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.