Building Front Ends with AWS Amplify and Connecting Devices with AWS IoT Core
This lesson explains the AWS services for building web and mobile front ends quickly, and for connecting and managing Internet of Things (IoT) devices.
Learning outcomes
After completing this lesson, you will be able to:
- Describe what AWS Amplify provides for web and mobile applications.
- Describe how AWS IoT Core connects devices and routes their data.
Front-end and mobile
Several services help teams build web and mobile applications. AWS Amplify builds, deploys and hosts full-stack web and mobile apps: developers add features such as sign-in, APIs and storage, and Amplify hosts the site and deploys every change pushed to the Git repository. Behind the scenes, Amplify uses Amazon Cognito for sign-up and sign-in, and services such as Amazon API Gateway, AWS Lambda and Amazon S3 for the back end. The following table summarises the services.
| Service | What it does |
|---|---|
| AWS Amplify | Build, deploy and host full-stack web and mobile apps: add authentication, APIs and storage; host sites with Git-based CI/CD so every push deploys |
| Amazon Cognito | Sign-up and sign-in for the users of web and mobile apps |
Internet of Things
The Internet of Things (IoT) means physical devices, such as sensors, appliances, vehicles and machines, that send and receive data. AWS IoT Core connects billions of such devices securely to the cloud and routes their data to other AWS services for storage and analysis. Devices authenticate with X.509 certificates and exchange messages over MQTT. Rules select messages with SQL and send them to services such as Lambda, SQS or DynamoDB, and the device shadow stores each device's last reported and desired state, so applications can work with a device even while it is offline. The following table summarises these features.
| Feature | What it does |
|---|---|
| Secure connection | Connects billions of IoT devices (sensors, appliances, vehicles, machines) to the cloud, authenticated with certificates |
| Rules | Select device messages with SQL and route them to other AWS services |
| Device shadow | Stores the last reported and desired state of each device |
Amplify and IoT Core
A connected product and its app
A company makes smart thermostats and a mobile app to control them. The following table shows the service behind each part.
| Part | Service |
|---|---|
| Thermostats send temperature readings to the cloud securely | AWS IoT Core |
| Send readings above a safe temperature to a processing queue | An AWS IoT Core rule with an Amazon SQS action |
| Build and host the mobile and web app, with storage | AWS Amplify |
| Let homeowners sign up and sign in to the app | Amazon Cognito (set up by Amplify) |
IoT Core can route readings on to other services, for example storing them in Amazon DynamoDB or triggering a Lambda function that sends an Amazon SNS alert when a temperature is dangerously high.
What does AWS IoT Core do?
Show answer
It securely connects devices to AWS, receives their messages and routes them to other services with rules.
Exam Tips
Remember for the exam
- To build and host full-stack web and mobile applications, use Amplify.
- To connect and manage IoT devices securely, use IoT Core.
- To route device messages to other AWS services, use IoT Core rules.
- For user sign-in in a web or mobile app, use Amazon Cognito.