Posts

Showing posts from August, 2021

Access Control to AWS resources using Lambda Authorizer Function

Image
  Hello there! In my previous blog I have discussed how to create a REST API endpoints for CRUD functionalities using Amazon API Gateway, AWS Lambda and Amazon DynamoDB, refer this page . Lambda Authorizer You may create REST API services for end customers but depending upon the use case you need to decide if those services will be available for public or only the authenticated and authorized customers can access them using special token or passphrase. You can have these services processed API Gateway has a special feature that uses a Lambda function to control access to your API. This is known as Lambda authorizer. When a request is made to one of the API’s methods, API Gateway makes a call to the Lambda authorizer that token or parameters sent by the client as input and then returns an IAM policy as output that allows the user to access the API or block the access in case the authorization fails. There are two types of Lambda authorizers:- Token based and Request Parameter based . S

CRUD REST API implementation using Amazon API Gateway, AWS Lambda and Amazon DynamoDB

Image
  In case you are thinking how to create a serverless CRUD application and expose the same to your external world, then follow the below steps, you will find a detailed understanding of it I believe. Serverless CRUD REST API Implementation First and the foremost thing is that you need to have an AWS account. In case you are new, you can create a free account  https://aws.amazon.com/free  where you will receive a lot of free tier resources to play around and have the feeling of cloud. For the past few years, Serverless Computing is a hot topic. But what is it? It is basically a cloud computing execution model in which the cloud provider is in charge of creating machine resources on demand and taking care of the servers on behalf of their customers. The customers responsibility is to provide the code. AWS Lambda service provides this feature of serverless computing. Here, we are going to use these services — Amazon API Gateway, AWS Lambda and Amazon DynamoDB. I have considered a Data Mod