AWS IOT Integration with AWS API Gateway and AWS DynamoDB
This AWS API Gateway Integration using AWS Lambda and DynamoDB tutorial shows how to create an API Gateway endpoint and how to connect it to a Lambda function and how to test the new endpoint. Lambda functions are snippets of code that can be ran in response to say some API Gateway event.
# Learn AWS Lambda with a demo.
# Different attributes of Lambda.
# Specifying VPC & IAM role for Lambda.
# AWS lambda function Deep Dive.
# Checking Lambda logs.
# Understanding AWS Lambda pricing.
► About Lambda
AWS Lambda is a compute service where you can upload your code to AWS Lambda and the service can run the code on your behalf using AWS infrastructure.
In this AWS Lambda tutorial will give an overview of Amazon lambda and its features. AWS Lambda is an event-driven, serverless computing platform provided by Amazon as a part of the Amazon Web Services. It is a compute service that runs code in response to events and automatically manages the compute resources required by that code. The purpose of Lambda, as compared to AWS EC2, is to simplify building smaller, on-demand applications that are responsive to events and new information. AWS targets starting a Lambda instance within milliseconds of an event. AWS Lambda was originally designed for use cases such as image upload, responding to website clicks or reacting to sensor readings from an IoT connected device. AWS Lambda can also be used to automatically provision back-end services triggered by custom HTTP requests, and “spin down” such services when not in use, to save resources. These custom HTTP requests are configured in AWS API Gateway, which can also handle authentication and authorization in conjunction with AWS Cognito.
This amazon web services IoT tutorial shows how powerful functions as a service are and how easy it is to get up and running with them.
# Learn AWS IoT with a demo.
# Different attributes of IoT.
# Specifying VPC & IAM role for IoT.
# AWS IoT Deep Dive.
# Checking IoT logs.
# Understanding AWS IoT pricing.
In this session, we explain why AWS customers are investing in IoT and how they are driving business outcomes with it. We share a few examples to illustrate what type of IoT solutions customers are deploying on AWS and what their business outcomes look like. We describe our portfolio of IoT services to demonstrate how AWS is helping them. Finally, we share lessons learned and guidelines developed to deploy IoT projects successfully.
Future tutorials on IoT will include setting up IoT with a physical hardware device! Stay tuned!
In this video I go over a live example of a very simple DynamoDB table designed to store user comments, and then through the detailed steps required to expose update/query operations on that table over a restFUL API using Amazon API Gateway.
DynamoDB is Amazon’s cloud hosted NoSQL database. The benefit of NoSQL is that you can be very flexible about how you store your data, and they tend to be easier databases to scale horizontally making the ideal for cloud environments like AWS.
In the example you will see how trivial it is to create new tables – there’s no setup required at all to create a new database instance – each table you add just gets added to your account.
API Gateway is used here to define and deploy a fulling functional, externally accessible HTTP/rest API to delegate some instructions to the DynamoDB backend. As discussed in the video, DynamoDB already exposes web services to directly manipulate the data but they are all POST services. There are several advantages to wrapping AWS services (such as Lambda functions as well) in API Gateway services. One of them here is that you can create a GET service to retrieve data from Dynamo which wraps the POST based services available directly against the DynamoDB.
IAM in this example is used to configure the permissions for users/roles/groups to perform operations on AWS resources. In this example we create policies to update and insert into DynamoDB table and then inform our API Gateway to run the API invocation with that role.
Written by admin