• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..21-Aug-2025-

.gitignore A D21-Aug-202550 65

README.md A D21-Aug-20251.6 KiB2116

SetupAWS.py A D21-Aug-20257.4 KiB236172

certs.py A D21-Aug-20252.9 KiB8965

configure.json A D21-Aug-202574 44

demo_config.templ A D21-Aug-202510.1 KiB258233

demo_config_empty.templ A D21-Aug-20259.8 KiB251226

misc.py A D21-Aug-20253.5 KiB10075

policy.py A D21-Aug-2025794 2820

policy_document.templ A D21-Aug-2025718 2525

thing.py A D21-Aug-20251.4 KiB4534

README.md

1## Script to setup the AWS resources through command line
2
3This script automates the process of [Prerequisites](https://docs.aws.amazon.com/freertos/latest/userguide/freertos-prereqs.html) and the configuring the files `demo_config.h` to connect to AWS IoT.
4
5Make sure you have `aws cli` configured on your machine with access_key, secret_key and region.
6
7Open the file `configure.json` and fill in the following details:
8* FreeRTOS_source_dir : The path of the FreeRTOS directory. By default, this is set to the top level of this repo (../..).
9* thing_name : Name of the thing you want to create
10
11**Options to use with the script**
121. To setup your Thing, and update credentials file, type the command: `python SetupAWS.py setup`
132. To cleanup the Thing you created with the script, and revert changes in credentials file, type the command: `python SetupAWS.py cleanup`
143. To only create thing, certificate and policy, type the command: `python SetupAWS.py prereq`
154. To update the files `demo_config.h` with thing name and the certificate keys, type the command `python SetupAWS.py update_creds`
165. To delete the thing, certificate and policy created by the script, type the command: `python SetupAWS.py delete_prereq`
176. To revert the changes in the file `demo_config.h`, type the command: `python SetupAWS.py cleanup_creds`
187. To list your certificates, type the command: `python SetupAWS.py list_certificates`
198. To list your policies, type the command: `python SetupAWS.py list_policies`
209. To list your things, type the command: `python SetupAWS.py list_things`
21