Skip to content

Serverless CRUD API for managing tasks, built with AWS CDK using Python. It leverages AWS services such as API Gateway, Lambda, and DynamoDB to provide a scalable and serverless backend for task management

License

Notifications You must be signed in to change notification settings

elrf3lipes/serverless_tasks_api

Repository files navigation

Welcome to Serverless Tasks API

Serverless CRUD API for tasks using AWS CDK, Lambda, API Gateway, and DynamoDB.

## Requisites:
- Node.js
- npm (latest)
- Python (3.x)
- AWS CLI (latest)
- AWS CDK (latest)
- AWS account profile with access key and secret key configured

## Attributes:
- API Gateway that exposes the REST API
- Lambda Functions that handle the CRUD operations
- DynamoDB Table to store task data

## How to deploy
```bash
git clone https://github.com/elrf3lipes/serverless_tasks_api
cd serverless_tasks_api
cdk bootstrap "aws://<account>/<region>"
cdk synth
cdk deploy

How to test using curl:

  • Create a task:
curl -X POST https://<api-url>/tasks \
  -H "Content-Type: application/json" \
  -d '{"title": "New Task", "description": "Task description", "status": "pending"}'
  • Get a task:
curl https://<api-url>/tasks/<taskId>
  • Update a task:
curl -X PUT https://<api-url>/tasks/<taskId> \
  -H "Content-Type: application/json" \
  -d '{"title": "Updated Task", "description": "This task has been updated", "status": "completed"}'
  • Delete a task:
curl -X DELETE https://<api-url>/tasks/<taskId>
  • Example of Curl commands and Responses:

Curl Responses

About

Serverless CRUD API for managing tasks, built with AWS CDK using Python. It leverages AWS services such as API Gateway, Lambda, and DynamoDB to provide a scalable and serverless backend for task management

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published