Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.08 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.08 KB

Note: currently only installs aws sdk python module and adds AWS IoT credentials to /etc/aws-credentials/

Quickstart

Clone repository to your layers directory.

git clone https://github.com/AntonHakansson/meta-aws-iot.git

Add the layer to your bblayers.conf

BBLAYERS += "/path/to/meta-aws-iot"

Add recipes to your local.conf.

IMAGE_INSTALL_append += " AWSIoTPythonSDK aws-credentials"

Download AWS IoT certificates and archive them in the following structure:

aws-certs.zip
│   cert.pem
│   private.key
│   public.key
│   root-CA.crt

To connect with your AWS IoT backend, you’ll need the provisioning credentials you downloaded earlier. Add the following line to your local.conf to supply those credentials to the build:

AWS_IOT_CREDENTIALS = "/path/to/your/credentials.zip"

Example, assuming aws-certs.zip is located in the same directory as your local.conf:

AWS_IOT_CREDENTIALS = "${TOPDIR}/conf/aws-certs.zip"

Then build your image using bitbake

The credentials can be located at /etc/aws-credentials/ on the built image.