Aws Iot
Aws Iot
Aim:
To integrate AWS IoT Components in EC2. EC2 receives and stores environmental
temperature for further processing.
Procedure:
In order to use amazon cloud services on Raspberry Pi, we need to install aws amazon
sdk on Raspberry Pi (Raspbian stretch OS).
iv) After click on get started, connect to AWS IoT window will appear
v) Choose Platform: Linux/OSX
ix) After downloading the connection kit , copy those three files into into Rasperry pi
machine through WinSCP emulator.
x) Now log into Rasperry pi machine by giving user name and password
2) Install:
Unzip the downloaded file. You should have following files:
a. <Thing_Name,>.cert.pem
b. <Thing_Name>.private.key
c. <Thing_Name>.public.key
d. start.sh
Put all the unzipped files in one folder.
ii) Check whether all the files are present in the Rasperrypi such as private.key, public.
Key, root-CA.crt as mentioned in below figure.
iii) Ensure all files exist in the Rasperry Pi
pi@raspberrypi:~/RPI $
Create a certificate
pi@raspberrypi:~/RPI $ vim aws_iot_sub.py
-bash: vim: command not found
pi@raspberrypi:~/RPI $ nano aws_iot_sub.py
pi@raspberrypi:~/RPI $
pi@raspberrypi:~/RPI $
pi@raspberrypi:~/RPI $
pi@raspberrypi:~/RPI $
Result:
Thus the AWS IoT Components have been integrated with EC2 .