How to setup AWS IoT with RaspberryPi?

In this video, you will see how to setup AWS IoT with raspberry pi. Send commands from AWS server to raspberryPi.

[program.py and motor.py DOWNLOAD]

Video

Policy Document

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iot:AttachPrincipalPolicy",
"iot:CreateKeysAndCertificate"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "iot:Connect",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"iot:Subscribe"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"iot:Receive"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"iot:Publish"
],
"Resource": "XXX/homeProject_Core/req"
}
]
}