creating a device on aws - mouser electronics · 2017-09-07 · connect to the aws iot service by...

19
Creating a device on AWS

Upload: others

Post on 27-May-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Creating a device on AWS

Page 2: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Sign into AWS

• Sign in to AWS IoT

aws.amazon.com/iot

2

Page 3: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Open AWS IoT Service

1. Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar.

2. Click on AWS IoT.

3

1

2

Page 4: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Create a thing (1/3)

1. Start creating your device by selecting “Registry”.

2. Then select “Things”.

4

1

2

Page 5: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Create a thing (2/3)

• Click the “Create” button on the top right.

5

Page 6: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Create a thing (3/3)

1. Name your Thing. (You need to remember your thing name as it will be used

later)

2. Click “Create thing”.

6

1

2

Page 7: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Create a certificate (1/4)

• Your thing has now been created. Select “Interact”.

7

Page 8: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Create a certificate (2/4)

1. Copy the Rest API Endpoint information to a text file. We’ll need this

later during the firmware configuration.

2. Then, click “Security”

8

2

1

Page 9: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Create a certificate (3/4)

• Click “Create certificate”.

9

Page 10: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Create a certificate (4/4)

1. Copy the certificate number to text file (just the

number not the full name),

2. Save the following files:

A. Thing certificate (xxxxx.cert.pem),

B. Private key (xxxxx.private.key),

C. root CA (Right click on Download then save link as),

3. Click Activate to activate the certificate.

10

A

B

C

3

1

Page 11: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Create a policy (1/4)

• Attach a policy to your device by clicking “Attach a policy”.

11

Page 12: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Create a policy (2/4)

• Click “Create new policy”.

12

Page 13: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Create a policy (3/4)

1. Name your policy

2. Under Action, type “iot:*”

3. Under Resource ARN, type “*”

4. Click “Allow”

5. Click “Create”.

13

1

2

3

4

5

Page 14: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Create a policy (4/4)

• Your policy has now been created.

• Click the gray arrow.

14

Page 15: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Attach a policy (1/5)

• Select “Certificates” under the “Security” menu.

15

Page 16: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Attach a policy (2/5)

1. Use the search bar to locate your certificate using the certificate

number.

2. Click the “…” in the top right corner of your certificate.

16

1

2

Page 17: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Attach a policy (3/5)• Click “Attach policy”.

17

Page 18: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Attach a policy (4/5)

1. Select your policy,

2. Click “Attach”.

18

1

2

Page 19: Creating a device on AWS - Mouser Electronics · 2017-09-07 · Connect to the AWS IoT service by typing AWS IoT in the AWS services search bar. 2. Click on AWS IoT. 3 1 2. Create

Attach a policy (5/5)

• Your policy has now been attached to your

device certificate.

• We are done with the Thing creation on

AWS.

• Next is Firmware configuration.

19