Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timurgain/aws-shop-serverless
AWS CDK, Serverless Python backend
https://github.com/timurgain/aws-shop-serverless
aws aws-apigateway aws-cdk aws-lambda dynamodb python
Last synced: about 2 months ago
JSON representation
AWS CDK, Serverless Python backend
- Host: GitHub
- URL: https://github.com/timurgain/aws-shop-serverless
- Owner: timurgain
- Created: 2024-06-14T12:12:38.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-21T16:36:40.000Z (6 months ago)
- Last Synced: 2024-07-21T18:17:51.278Z (6 months ago)
- Topics: aws, aws-apigateway, aws-cdk, aws-lambda, dynamodb, python
- Language: Python
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless AWS backend for a shop
## Description
Serverless microservice backend for a shop. Study project at EPAM RS School to learn AWS Cloud Development.[CloudFront Frontend](https://d3d84vku2q8obl.cloudfront.net)
## Architecture & Technologies
The backend is built using the following AWS services:
- AWS CloudFront
- AWS Lambda
- AWS API Gateway
- AWS DynamoDB
- AWS S3 Bucket
- AWS SQS
- AWS SNS
- AWS CloudFormation
- AWS CDK
- Python
- unittest
- ...## API Documentation
Use [Swagger Web](https://editor.swagger.io) to view the API documentation. Copy the content of the file `openapi.yaml` and paste it into the editor.## Run and Deploy on AWS
To manually create a virtualenv on MacOS and Linux:
```
$ python3 -m venv .venv
```After the init process completes and the virtualenv is created, you can use the following
step to activate your virtualenv.```
$ source .venv/bin/activate
```If you are a Windows platform, you would activate the virtualenv like this:
```
% .venv\Scripts\activate.bat
```Once the virtualenv is activated, you can install the required dependencies.
```
$ pip install -r requirements.txt
```At this point you can now synthesize the CloudFormation template for this code.
```
$ cdk synth
```To add additional dependencies, for example other CDK libraries, just add
them to your `setup.py` file and rerun the `pip install -r requirements.txt`
command.## CDK commands
* `cdk ls` list all stacks in the app
* `cdk synth` emits the synthesized CloudFormation template
* `cdk deploy` deploy this stack to your default AWS account/region
* `cdk diff` compare deployed stack with current state
* `cdk docs` open CDK documentationEnjoy!