Deploying django-projects to Amazon AWS
Project description
Tool for easy deploying django-projects to Amazon AWS. Just two commands: easy-aws push and easy-aws deploy
Quick start
Stage 1. Installing
Ensure that have installed python3-dev
Install easy-aws:
pip install easy-aws
Stage 2. Preparing
Configure boto (enter AWS credentials and select region):
easy-aws configure
(optional) To specify python module dependencies add file requirements.txt to django project directory. Example of requirements.txt:
Django mock
(optional) To specify system dependencies add file system-requirements.txt to django project directory. Specified packages will be install via apt-get install. Example of system-requirements.txt:
python3-dev libpq-dev
Stage 3. Deploying process
All commands should be run in django project directory.
Create and setup temporary instance, upload your django project on instance, create image and remove instance:
easy-aws push
Create load balancer, create launch configuration based on the created image and create auto scaling group (auto scaling up to 3 instances when CPU-load > 70):
easy-aws deploy
Stage 4. Undeploying process
To remove auto scaling group and launch configuration execute:
easy-aws undeploy
(optional) To full clean AWS cloud, i.e remove all auto scaling groups, launch configurations, load balancers, images, instances, key pairs and security groups execute:
easy-aws clean
Other
Show debug messages, eg:
easy-aws -d <command>
Print help, eg:
easy-aws -h easy-aws <command> -h
Create VPN-server:
easy-aws vpn create
Terminate VPN-server:
easy-aws vpn terminate
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file easy-aws-1.0.6.tar.gz.
File metadata
- Download URL: easy-aws-1.0.6.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cf8c054514812d8954fae64779718b554c1c9dd5064c0c660138944cfdb197c
|
|
| MD5 |
f00a2611863dd8258a89913c425d56d0
|
|
| BLAKE2b-256 |
4d265238d9b94ba844fdabad7764974b8194322b31e05f3a4ee7e5aa74907629
|