A proof-of-concept custom AWS service, exposed through a botocore
client. Read
the blog
post 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:
- Python 3.7
- AWS Account and
awscli
configuration/credentials foreu-west-1
region.
Note: If you cannot run in eu-west-1
- then git grep eu-west-1
and replace references.
Setup:
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:
- First time it creates the service stack.
- Second time it updates it and prints out instructions how to update the two
files in
models
directory.
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.