Skip to content

Flask SQS Producer and SQS Consumer that transform the POST json to CSV in S3.

Notifications You must be signed in to change notification settings

EylonT/rest-api-learning-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is for learning purposes only. It creates A local REST API flask producer for sqs and local consumer that sends the data to S3.

Requirements:

  • default aws credentials set on your machine.
  • python 3
  • docker and docker compose

Installation steps:

  1. Upload the architecture.yaml to cloudformation and choose a S3 bucket name, and wait for the stack to complete.
  2. Navigate to Consumer/Consumer.py and change the bucket name in the "change me" section.
  3. Run docker-compose up -d
  4. Open an API client (postman/curl/custom client app)
  5. POST to http://127.0.0.1:5000/api

NOTE

Warning! Do not share the images with others after the build because they contain your access and secret keys. You can share the project with others and run the docker compose.

About

Flask SQS Producer and SQS Consumer that transform the POST json to CSV in S3.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published