일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 완속충전기
- raspberry
- 에버온
- 파이썬
- 홈어시스턴트
- OCPP
- YMODEM
- dynamodb
- 전기차충전기
- 보안
- flask
- IOT Core
- 라즈베리파이
- 전기차
- lambda
- 서버리스
- everon
- 디자인패턴
- thread
- Android
- 전기차충전
- STM32
- esp8266
- homeassistant
- 충전기
- 급속충전기
- 플라스크
- 펌웨어
- 안드로이드
- AWS
- Today
- Total
Louie NRT Story
[AWS] IoT Core -> Lambda -> DynamoDB (1) 본문
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
'서버시스템' 카테고리의 다른 글
[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 |