Documentation Status

awstools

This is a quick and simple API for AWS IoT based on the excellent awscli and sh packages.

Usage

from awstools import awsiot as iot

# Create things, certificate, keys, and policy
thing = iot.create_thing("DummyThing")
certs = iot.create_keys_and_certificate()
policy = iot.create_policy("PubToDummy", "Allow", "iot:Publish", "dummy")

# Save certificates and keys
iot.write_keys_and_certificates(certs)

# Attach policy to certs
iot.attach_policy(certs, policy)

# Attach certs to thing
iot.attach_to_thing(thing, certs)

For more information please see the documentation.

awsiot methods

Indices and tables