https://github.com/seporaitis/elastic-unicorn-service
A proof-of-concept custom AWS-like service, exposed through a botocore client.
https://github.com/seporaitis/elastic-unicorn-service
aws aws-apigateway boto3 botocore experiment python3
Last synced: about 1 month ago
JSON representation
A proof-of-concept custom AWS-like service, exposed through a botocore client.
- Host: GitHub
- URL: https://github.com/seporaitis/elastic-unicorn-service
- Owner: seporaitis
- Created: 2020-06-19T17:38:49.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T23:31:57.000Z (over 3 years ago)
- Last Synced: 2025-03-12T18:25:11.502Z (over 1 year ago)
- Topics: aws, aws-apigateway, boto3, botocore, experiment, python3
- Language: Shell
- Homepage: https://www.seporaitis.net/
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# elastic-unicorn-service
A proof-of-concept custom AWS service, exposed through a `botocore` client. Read
the [blog
post](https://www.seporaitis.net/posts/2020/06/29/aws-like-service-on-boto3/) to
understand more what this is.
Running `tox` does not require any AWS resources and should give an impression
of this unusual idea. Continue reading if you'd like to run an example "Elastic
Unicorn Service" like this.
## Requirements & Setup
Requirements:
* Python 3.7
* AWS Account and `awscli` configuration/credentials for `eu-west-1` region.
Note: If you cannot run in `eu-west-1` - then `git grep eu-west-1` and replace references.
Setup:
```bash
python -m venv venv
source venv/bin/activate
./deploy.sh # follow the instructions in the output
```
`deploy.sh` is a simple script that should be run twice:
1. First time it creates the service stack.
2. Second time it updates it and prints out instructions how to update the two
files in `models` directory.
## Running
`AWS_DATA_PATH` should point to `models` directory, for everything to work.
For example, run - `AWS_DATA_PATH=models/ python unicorn.py` and see the service
in action.