AWS IoT Core Setup

This page guide user to setup Amazon Web Services free account with IoT Core and Create a Thing under IoT Core.

Setup an AWS account

Follow the steps to create AWS account.

Create a Thing in AWS IoT Core

  1. Navigate to AWS IoT > Manage > Things.

AWS Things Page before adding device
  1. Click Create things and select Create single thing.

  2. Use my-thing for Thing name.

  3. Select Auto-generate a new certificate (recommended).

  4. Select Create policy.

  5. Use policy-name and choose advance mode and copy below demo policy.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "iot:Publish",
                "iot:Receive",
                "iot:Republish"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "iot:Subscribe"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "iot:Connect"
            ],
            "Resource": "*"
        }
    ]
}

Warning

The policy used for the tutorial is not secure. Not recommended for production.

  1. Select newly created policy and click Create thing.

  2. Download Device Certificate, Public Key file, Private Key file, and Root CA certificates and store them securely.

AWS Things Page certs

Warning

securely store the certificates.

  1. After downloading the certs and click on Done. The thing will be successfully created.

AWS Things Page after adding adding device
  1. Get device Endpoint information by navigating into device > Interact > view Settings and store Endpoint URL.

AWS Things Page Interact AWS Things Page Endpoint URL