AWS IoT Core
Connecting AWS IoT Service
Websocket Connection
1. AWS IAM Service setup, in this step we will get access key
and secret key
for Proxy
to be able to authenticate websocket
to communicate with AWS IoT
- Register Amazon AWS service account
- Login AWS web console, and open
IAM
service - Navigate to
Users
->Add user
, and then filluser name
with checkboxProgrammatic access
->Next Permissions
- Choose
Add user to group
option, and thenCreate Group
withAWSIoTFullAccess
permission ->Next Review
-> FinishCreate user
- Now, you should save the
access key
(i.e. AKIAJKSTVJUC4IQ5EAZQ) andsecret access key
(i.e. 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)
2. AWS IoT Service Setup, in this step we will get endpoint
uri for Proxy
to able to target right AWS IoT service in behalf of device clients.
- Open
AWS IoT
Service from web console - Click
Settings
at left-bottom corner of the screen. - You will find the
Custom endpoint
value, i.e. “axfcb1ozcf4iq.iot.eu-west-1.amazonaws.com”.Keep in mind that endpoint uri has
Region
, which is your choice for IoT service.
3. Now you can use/insert above three arguments(access key
, secret key
, and IoT endpoint uri
) in Proxy
Redis server, for clients’ Endpoint object.
TCP/TLS Connection
1. AWS IAM Service setup, in this step we will get a user to be able to access AWS IoT
- Register Amazon AWS service account
- Login AWS web console, and open
IAM
service - Navigate to
Users
->Add user
, and then filluser name
with checkboxProgrammatic access
->Next Permissions
- Choose
Add user to group
option, and thenCreate Group
withAWSIoTFullAccess
permission ->Next Review
-> FinishCreate user
- Logout, and then logon AWS webconsole with created user, which will only have access to IoT service.
2. AWS IoT Service Setup, in this step we will get certs
and endpoint
uri for Proxy
to able to target right AWS IoT service in behalf of device clients.
- Time to configure a
device
, by navigating toAWS IoT
->Onboard
->Configuring a device
->Get Started
- Choose any platform and SDK, whichever will give you the X509 certifications generated by AWS CA root.
- Next step, you give a Thing name, i.e. “Asavie-IoT-Proxy”
- Next step, you will be asked to download
connection kit
, in which you will get such certs as:1 2 3
Asavie-IoT-Proxy.cert.pem Asavie-IoT-Proxy.private.key Asavie-IoT-Proxy.public.key
- Click
Settings
at left-bottom corner of the screen. You will find theCustom endpoint
value, i.e. “axfcb1ozcf4iq.iot.eu-west-1.amazonaws.com”.Keep in mind that endpoint uri has
Region
, which is your choice for IoT service.
3. Now you can use/insert above three arguments(Asavie-IoT-Proxy.cert.pem
, Asavie-IoT-Proxy.private.key
, and IoT endpoint uri
) in Proxy
Redis server, for clients’ Endpoint object.
Q&A
AWS IoT Q: Why do you need downloading CA root cert from AWS IoT for devices SDK? A: https://forums.aws.amazon.com/thread.jspa?messageID=743161
Q: Where is AWS IoT Service SDK Guide A: https://docs.aws.amazon.com/iot/latest/developerguide/what-is-aws-iot.html
Q: Where is AWS IoT Device SDK for Java Guide A: https://github.com/aws/aws-iot-device-sdk-java/blob/master/README.md