Louie NRT Story

[AWS] IoT Core -> Lambda -> DynamoDB (1) 본문

서버시스템

[AWS] IoT Core -> Lambda -> DynamoDB (1)

hyeok0724.kim@gmail.com 2020. 1. 27. 19:40
반응형

Writed: 27 JAN 20

Index

1. Create Policy

2. Register a thing

3. Create the certification and connect policy that was made before

4. Test the connection to IoT Core

1. Create Policy

1) In the left navigation pane, choose secure, and then choose Policies. Click create a policy button

2) Enter restriction infomation that mean allowed all clients to connect to AWS IOT.

 - In the Action field, enter "iot:*". The type of actions that can be perfomed by a resource.

 - In the Resource ARN field, enter "*". You can restrict that clients or devices can connect by specifying a client.

   ex) arn:aws:iot:your-region:your-aws-account:client/<my-client-id>

        arn:aws:iot:your-region:your-aws-account:topic/<your/topic>

 - Select the Allow check box. This allows your device to publish messages to the specified topic.

 

2. Register a thing

1) Choose Register button

2) Create a single thing

3) Enter a name for your thing, and then choose Next

4) Choose Create thing without certificate. We will create the certification next step

3. Create the certification and connect policy that was made before

1) Create the certification automatically, and then download connection kit.

2) Connect a policy to the certification

 - That can help allow all clients to connect to AWS IoT and publich messages to the specified topic.

 

4. Test the connection to IoT Core

* Note

 - Run Test Code. "-t" option is topic

python aws-iot-device-sdk-python\samples\basicPubSub\basicPubSub.py -e 

xxxxxxxxxxxxx-ats.iot.ap-northeast-2.amazonaws.com -r root-CA.crt -c eccTest03.cert.pem -

eccTest03.private.key -t ecc/test/python

 - Modify this code in "basicPubSub.py"

 

Next Step

https://louie0724.tistory.com/236

 

[AWS] IoT Core -> Lambda -> DynamoDB (2)

Louie NRT Story [AWS] IoT Core -> Lambda -> DynamoDB (2) 본문 MAKER [AWS] IoT Core -> Lambda -> DynamoDB (2) Louie_NRT 2020. 2. 4. 20:23 Prev 1 2 3 4 5 ··· 213 Next

louie0724.tistory.com

 

반응형

'서버시스템' 카테고리의 다른 글

[Windonws] 원격데스크톱 포트 변경 방법  (0) 2020.03.03
[AWS] IoT Core -> Lambda -> DynamoDB (2)  (0) 2020.02.04
[AWS] API Gateway -> Lambda  (0) 2020.01.27
[AWS] IOT Core Lambda  (0) 2020.01.13
[AWS] IOT Core DynamoDB  (0) 2020.01.13
Comments