Lesson 3 of 3 Developer Tools, End-User Computing, Frontend and IoT

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.

ServiceWhat it does
AWS AmplifyBuild, 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 CognitoSign-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.

FeatureWhat it does
Secure connectionConnects billions of IoT devices (sensors, appliances, vehicles, machines) to the cloud, authenticated with certificates
RulesSelect device messages with SQL and route them to other AWS services
Device shadowStores the last reported and desired state of each device
Match the pairs

Amplify and IoT Core

Exam skills 3.8.6 · 3.8.7

Match each need with the AWS service or feature that meets it.

Log in to try this activity Interactive activities are free with an account.
Worked example

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.

PartService
Thermostats send temperature readings to the cloud securelyAWS IoT Core
Send readings above a safe temperature to a processing queueAn AWS IoT Core rule with an Amazon SQS action
Build and host the mobile and web app, with storageAWS Amplify
Let homeowners sign up and sign in to the appAmazon 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.

Check yourself

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.