AWS IoT
Developer Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Register a Device in the Registry

Devices connected to AWS IoT are represented by IoT things in the AWS IoT registry. The registry allows you to keep a record of all of the devices that are registered to your AWS IoT account.

To register your device in the registry

  1. On the Welcome to the AWS IoT Console page, in the navigation pane, choose Manage.

  2. On the You don't have any things yet page, choose Register a thing.

  3. On the Creating AWS IoT things page, choose Create a single thing.

  4. On the Create a thing page, in the Name field, enter a name for your thing, such as MyIotThing. Choose Next.

    Note

    We do not recommend using personally identifiable information in your thing name.

  5. On the Add a certificate for your thing page, choose Create certificate. This generates an X.509 certificate and key pair.

    
                        Add a certificate for your thing
  6. On the Certificate created! page, download your public and private keys, certificate, and root certificate authority (CA):

    1. Choose Download for your certificate.

    2. Choose Download for your private key.

    3. Choose Download for the Amazon root CA. A new webpage is displayed. Choose RSA 2048 bit key: Amazon Root CA 1. This opens another webpage with the text of the root CA certificate. Copy this text and paste it into a file named Amazon_Root_CA_1.pem.

    Most web browsers save downloaded files into a Downloads directory. You copy these files to a different directory when you run the sample applications. Choose Activate to activate the X.509 certificate, and then choose Attach a policy.

    
                        Certificate created!
  7. On the Add a policy for your thing page, choose Register Thing.

    After you register your thing, create and attach a new policy to the certificate.

    
                        Register thing
  8. On the AWS IoT console, in the navigation pane, choose Secure, and then choose Policies.

    Choose Create.

    
                        Policies
  9. On the Create a policy page:

    1. Enter a Name for the policy, such as MyIotPolicy.

    2. For Action, enter iot:*. For Resource ARN, enter *.

    3. Under Effect, choose Allow, and then choose Create.

      This policy allows your device to perform all AWS IoT actions on all AWS IoT resources.

      Important

      These settings are overly permissive. In a production environment, narrow the scope of the permissions to those required by your device. For more information, see Authorization.

      
                                Create policy
  10. Choose Manage, and then choose your AWS IoT thing.

    
                        Select your thing
  11. Choose Security.

    
                        Select security
  12. Choose your certificate.

  13. In the certificate detail page, choose Actions, and then choose Attach policy.

    
                        Attach policy
  14. Choose the policy you created (MyIotPolicy), and then choose Attach.

    
                        Attach policy