This project will create a thing on AWS IoT platform using boto3 and python and download the certificates.
-
AWS Credentials, if you have installed AWS CLI, then you can use it to configure your credentials file:
aws configure
if don't you can create a credentials by creating credentials file under
~/.aws/
(~/.aws/credentials
) and put:aws_access_key_id = YOUR_ACCESS_KEY aws_secret_access_key = YOUR_SECRET_KEY
-
Python
-
Boto3, you can find more information about it here
-
Create a policy named
GGTest_Group_Core-policy
or changedefaultPolicyName
value in source code to your appropriate policy.
NOTE: install.sh installs some required libraries
- Clone the repository
- modify defaultPolicyName variable in createThing-Cert.py and run it
python3 createThing-Cert.py
- modify line 29 in lab4_emulator_client_updated.py with your endpoint name and run it
python3 lab4_emulator_client_updated.py