Skip to content

REST API deployed on AWS using Terraform as a IaC Tool, using services like Lambdas, API Gateway, DynamoDB, Cloudwatch among others.

Notifications You must be signed in to change notification settings

vairome/rest-api-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless REST API

REST API deployed in AWS using services such as Lambda, API Gateway, DynamoDB, configured with XRay traces and CloudWatch log groups for resource monitoring, it has 30 different resources, all deployed in AWS and configured in Terraform.

The API is built with Node.js and is an API for task control, in which records can be consulted, added, modified and deleted through HTTP queries.

Serverless

🚀 Quick reference

• Maintained by: Byron Murillo

• Where go to get help: https://github.com/vairome/rest-api-terraform/issues

How it works

It is a REST API to store tasks through 3 fields, id, task and done, which is a boolean data type to handle the status of tasks.

All HTTP requests work through a lambda, there is a lambda for each type of request, get, post, put and delete, in the same way there are 4 endpoints for each type of HTTP request.

Additionally, they have an X-Ray trace configured that points to a group of CloudWatch logs.

How to use this API

Link to the API Gateway

https://j6fj5z0zwl.execute-api.us-east-1.amazonaws.com/v1/todos

How to interact with the API

There is a link to a Postman Collection to interact with the api

https://www.getpostman.com/collections/3766cbb31024d770d910

How to deploy this infrastructure in your own AWS account

Clone the repo, and have installed the AWS CLI and Terraform in your local machine, the credentials are passed by the profile of your aws cli configuration.

Then...

1)Inicialize terraform.

terraform init
  1. Review the terraform plan
terraform plan
  1. Deploy the infraestructure
terraform apply

At the end the output is the endpoint to your api.

License

MIT

About

REST API deployed on AWS using Terraform as a IaC Tool, using services like Lambdas, API Gateway, DynamoDB, Cloudwatch among others.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published