element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Blog Raspberry Pi: Connect Node-RED to Amazon Web Services
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
GPIO Pinout
Raspberry Pi Wishlist
Comparison Chart
Quiz
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 17 Jun 2019 6:13 PM Date Created
  • Views 2388 views
  • Likes 6 likes
  • Comments 0 comments
Related
Recommended
  • debian
  • raspberry pi 4 4k
  • pi
  • aws
  • node-red
  • amazon_web_services
  • raspbian

Raspberry Pi: Connect Node-RED to Amazon Web Services

Jan Cumps
Jan Cumps
17 Jun 2019

In a post about accessing Amazon Web Services from Node-RED that I wrote for another device, I claimed that it would also work on a Raspberry Pi. I wrote that without testing.

I guess I'll have to put the money where the mouth is, and show that the claim is true.

Let's install Node-RED on a Pi and communicate with Amazon Web Services.

image

image: action capture of AWS IoT Core's MQTT Test page shooting a message to the Node-RED running on YOUR! Raspberry Pi

 

 

Starting Position: Fresh Raspbian Stretch Lite with Node-RED and AWS Nodes

 

  • Raspbian Stretch Light installed, latest version (at the time of  writing: 2019-04-08-raspbian-stretch-lite).
  • Headless configured following these instructions: https://hackernoon.com/raspberry-pi-headless-install-462ccabd75d0 .
  • Node-RED installed following these instructions: https://nodered.org/docs/hardware/raspberrypi .
  • I added the AWS MQTT Node library: https://flows.nodered.org/node/node-red-contrib-aws-iot-hub . (take care to run the installation from /home/pi/.node-red).
  • Start Node-RED following the instructions above, and in your browser surf to http://<yourpi>:1880/.

 

Register Raspberry Pi as A Thing, Test with AWS Test Kit and Install Certificates

 

I followed my own instructions to configure the Raspberry Pi as a Thing in AWS and test it with the AWS Test Kit.

Follow these two sections: Set up the Node-RED Container as an AWS Thing and Adapt the Security Policy.

Where you see harting_mica_nodered, use rapsberrypi.

In the raspberrypi-Policy, make sure to add client/raspberrypi* instead of client/harting_mica_nodered*.

 

Testing the Exchange with AWS and Node-RED

 

I'm again using the test flow from my Harting Mica blog. Only the certificate directory name, endpoint and client id are different:

image

After Deploying the flow, use the  IoT Core Test MQTT page to shoot a message to topic_1.

 

image

 

Yes. Success. Enjoy.

Need inspiration? To see what you can do with your (sensor?) data once it arrived at AWS, check: Manage Arduino MKR WIFI 1010 Battery Life in the Cloud - AWS, Graphs and Alerts.

image

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube