AWS Device 구성

# AWS IoT Device SDK for Python 설치
$ python3 -m pip install awsiotsdk

# AWS IoT Device SDK for Python 리포지토리 Clone
$ cd ~ 
$ git clone <https://github.com/aws/aws-iot-device-sdk-python-v2.git>

# certs directory 생성
$ mkdir ~/certs # 이후 인증서 다운 후 certs에 넣기

# 실습 코드 실행 해 보기
$ python3 pubsub.py --endpoint a36epjlxya2ci2-ats.iot.ap-northeast-2.amazonaws.com --ca_file ~/certs/Amazon-root-CA-1.pem --cert ~/certs/device.pem.crt --key ~/certs/private.pem.key

curl "<https://awscli.amazonaws.com/AWSCLIV2.pkg>" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /