This is a demo project to interact with different AWS services.
-
This project uses Poetry for dependency and virtual environment management, you also need to install it.
-
You also need to create IAM user with programmatic access to EC2, S3, SNS, SQS, RDS, DynamoDB, Lambda and ElastiCache.
-
Also create and preconfigure EC2 instance, RDS database and redis ElastiCache cluster.
- Clone the repo:
git clone https://git.epam.com/epm-uii/badgerdoc/back-end.git
- To install the required dependencies and set up a virtual environment run in the cloned directory:
poetry install
- Add
.env
file with all requested variables to repo root.
- To run web application from repository root use command:
poetry run uvicorn --host '0.0.0.0' --port 8000 app.main:app
Note: make sure to allow access to port 8000 in 'Inbound rules' of your EC2 instance.
- Since application runs you can interact with resources via SWAGGER:
http://<your_EC2_instance_Public_IPv4_DNS_adress>/docs