[Music]
hello hello welcome to solving with aws
solutions your deep dive into reference
architectures built by aws that are
ready to deploy instantly in the cloud
i'm rob your host joined today with rock
and rock shawna hey ruxin how are you
hey rob happy to see you today we are
going to talk about
iot device simulator solution a solution
that helps you to easily
simulate over hundreds of connected
devices to test your device integration
for iot services
that's right customers tell us that they
want to innovate and build serverless
iot applications
but struggle to test them without a
large connected pool of devices
right because you know this meant having
to configure and manage hundreds of
devices
or to develop time consuming scripts but
this problem is solved easily
using iit device simulator that's
awesome let's take a closer look at the
solution
let's do it so can you walk me through
the iot device simulator web page please
sure so i'm on the landing page for the
solution
uh here you can access and view the
architecture diagram for the solution
you can also access the deployment guide
for the solution or
you know the instruction manual for how
to use the solution
uh there's also a link to the source
code for the solution from here
and of course you'll have a link to the
cloud formation template
through which you can deploy the
solution in your aws account and start
using it
so can you bring up the architecture
diagram for me let's walk through what's
happening as part of this solution
all right so i've loaded up the
architecture diagram here let's go over
through this design
so when customers deploy the solution
it's going to basically set up your iot
device simulator ui
this is a static website that's hosted
on an amazon s3 bucket
and there's also going to be an amazon
cloudfront which provides the cdn
network for you
and it's also going to restrict public
access to the contents of your s3 bucket
so what is amazon cognito doing as part
of the architecture
so amazon cognito user pools basically
helps you and manage
user access to the ui and you know helps
you manage
who should access what and also to help
you add or remove users to access the ui
cool so lots and lots of microservices
going on as part of this architecture
what are they doing and how are they
invoked so we have the amazon api
gateway which is going to manage the end
point for the ui
and this is going to invoke these aws
lambda functions or microservices
whenever customers make any changes on
the ui
and what are some of the example micro
services that are running probably the
most important micro service here is the
device micro service
which is going to help users manage the
crud operations
which is basically you know your create
read update delete
on any of your devices or your device
types
and it's also going to help you start
and stop the simulations
so are there any other types of
microservices that may be running
yeah so we have another microservice
called the metrics microservice
which is going to aggregate all this
information about all the simulations
that are being run across your devices
and it's going to show it on the ui in a
metrix tab so that
this microservice holds the business
logic for it okay cool so what happens
when you actually start a simulation as
part of the ui
oh so when you start a simulation it's
going to invoke the device microservice
which is going to send a request to your
amazon simple q service
or sqs this basically provides your
asynchronous messaging
between all of your microservices as
well as your simulation engine
okay cool and where are the simulations
actually being run
so the simulations are basically run on
amazon elastic containers
and in the back end it's using aws far
gate which is basically a serverless
compute engine
to manage and run your containers that's
pretty cool so lots of these simulations
now running
generating lots of data what are we
doing with the data that that's actually
generated
yeah so we have a amazon dynamodb table
which is going to store
all this data about you know your
devices that you created
your device types as well as all the
simulations that were run
it's going to be the purchased in
storage for all of this information
oh pretty cool so we have this ui can
you walk us through a demo of what it
looks like please
sure so i've deployed the cloudformation
template and i've set up the
instructions to
set up the ui so here you can use this
to you know
add and update your device types the
widgets
as well as any of your connected vehicle
fleet of devices so
let's go over to the device types and
start from here okay what kind of
devices can we start setting up
so you can create any type of device
that you want for your simulation
purpose for
your business need so i've created you
know humidity sensor
or pressure sensor but you can add
anything what device
type do you want rob um i love my dogs
let's do something that will help
integrate iot with like a doggy cam
what okay i've never heard of that one
but
let's do that doggy cam sensor perfect
all right so let's create the device
type now
the next step is to create widgets to
associate with the device type and to
start your simulations
so let's go over to that okay cool how
many can we start up
so you can create and start up to 100
devices at a time for your simulation
so let's uh select a device type your
doggy cam
sensor uh and maybe you know let's start
simulating 10 of them at a time
so it's pretty easy then you you define
the type and then you just set up and
generate as many as you need
yep exactly and it's going to continue
to run
from here when you start your simulation
and send data to your aws iot endpoint
that's pretty cool and talk to me about
the dashboard you mentioned earlier as
part of the microservices what kind of
data are we collecting and how we can we
visualize it
sure so your dashboard is basically
going to be the point where all this
information about all the simulations
are going to be aggregated
and it's going to tell you you know the
total simulations that were run
across uh however many number of device
types that you created as well as how
long
it took for all of these simulations to
run and you can also look back to you
know six months of you know how many
simulations were run
um you can also add you know a connected
fleet of devices using automotive
uh option over here so you can create
and add a vehicle and you know
start simulating for you know up to 100
vehicles at a time so that is another
thing that's also going to show up on
the dashboard
oh that's pretty cool well thanks for
walking us through iot device simulator
i appreciate it
thanks rob that was iot device simulator
a solution that provides a web-based ui
for customers to easily manage a fleet
of connected devices
that sends data to iot services as a
result you'll be able to test
seamlessly your iot applications with
reduced costs
and increased productivity so go ahead
and innovate faster with iot device
simulator solution
and check out our other solutions on aws
solutions page
thank you