tree: 752534f2887ff7831844458194b2c3213a965c99 [path history] [tgz]
  1. .gitignore
  2. aws_iot_demo_profile.templ
  3. aws_iot_demo_profile_empty.templ
  4. certs.py
  5. configure.json
  6. misc.py
  7. policy.py
  8. policy_document.templ
  9. README.md
  10. SetupAWS.py
  11. thing.py
FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/tools/aws_config_quick_start/README.md

Script to setup the AWS resources through command line

This script automates the process of Prerequisites and the configuring the files aws_iot_demo_profile.h to connect to AWS IoT.

Make sure you have aws cli configured on your machine with access_key, secret_key and region.

Open the file configure.json and fill in the following details:

  • afr_source_dir : The path of the amazon-freertos directory. By default, this is set to the top level of this repo (../..).
  • thing_name : Name of the thing you want to create

Options to use with the script

  1. To setup your Thing, and update credentials file, type the command: python SetupAWS.py setup
  2. To cleanup the Thing you created with the script, and revert changes in credentials file, type the command: python SetupAWS.py cleanup
  3. To only create thing, certificate and policy, type the command: python SetupAWS.py prereq
  4. To update the files aws_iot_demo_profile.h with thing name and the certificate keys, type the command python SetupAWS.py update_creds
  5. To delete the thing, certificate and policy created by the script, type the command: python SetupAWS.py delete_prereq
  6. To revert the changes in the file aws_iot_demo_profile.h, type the command: python SetupAWS.py cleanup_creds
  7. To list your certificates, type the command: python SetupAWS.py list_certificates
  8. To list your policies, type the command: python SetupAWS.py list_policies
  9. To list your things, type the command: python SetupAWS.py list_things