일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 안드로이드
- 보안
- AWS
- 홈어시스턴트
- 펌웨어
- homeassistant
- esp8266
- 서버리스
- 급속충전기
- 전기차충전기
- YMODEM
- 완속충전기
- OCPP
- 에버온
- IOT Core
- lambda
- 전기차충전
- 전기차
- thread
- 디자인패턴
- raspberry
- 파이썬
- 충전기
- Android
- 플라스크
- dynamodb
- 라즈베리파이
- everon
- STM32
- flask
- 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
[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 |