To perform this demo, it is recommended to follow the AWS IoT chat application; you can find further instructions on the GitHub repo: https://github.com/aws-samples/aws-iot-chat-example.
This example walks you through a web app real-time application using the following services:
- AWS IoT, to exchange messages between web clients
- Transmit messages using the MQTT over the WebSocket protocol to reduce network bandwidth requirements
- Authenticate clients with Amazon Cognito and attach IoT policies to allow clients to do the following:
- Connect to the AWS IoT Device Gateway
- Publish messages to specific topics
- Subscribe and receive messages from specific topics
- Authentication with Amazon Cognito user pools and Cognito federated identities
- Serverless computing with AWS Lambda
- API access control provided by Amazon API Gateway
- Room persistence via Amazon DynamoDB
- Static site...