GET AND POST SERVERLESS PROJECT IN AWS

GET AND POST SERVERLESS PROJECT IN AWS

Services Used:

•API GATEWAY

•IAM ROLE

•LAMBDA FUNCTION

•DYNAMO DB

•S3 BUCKET

First step is to create a basic api.

No alt text provided for this image
No alt text provided for this image


Also create get and post methods in that api

Create a lambda function and write the available code imtegrating get and post methods

No alt text provided for this image

Link the lambda function and api gateway.

No alt text provided for this image


Create a dynamo db table

No alt text provided for this image

 Change the settings in the api gateway ans also dont forget to enable CORS in API.

No alt text provided for this image

Change the lambda time out to 1 min

No alt text provided for this image

Run the code in lambda

No alt text provided for this image

Check whether the details are displayed

Woahh!!! IT DOES….

Create an item with name ID Gender Name as attributes and EmailID as primary key

No alt text provided for this image

Check post method in the postman software

No alt text provided for this image


Now our task is to create S3 bucket for static web hosting by uploading the .html,.js files and creating a policy

No alt text provided for this image
No alt text provided for this image


Check the get and post mechanism in website

No alt text provided for this image
No alt text provided for this image


Check the post method

No alt text provided for this image

HURRAYYYY!!!!!!!!! ITS WORKING THANK YOU

To view or add a comment, sign in

More articles by Padma Sai

Explore content categories