SageCreator
Installation
Install and update using pip:
$ pip install sagecreator
Python 3 is required and it is highly recommended to install and run the package in virtualenv. Supported in Python >= 3.5.0.
Prerequisites
AWS Account
To provision the cluster you need an AWS Account and an IAM user with:
Access Key ID
Secret Access Key
User should either be in Administrators group as described in IAM user tutorial, or create a custom IAM policy
Execution
After the installation, configure the tool by specifying configuration parameters:
$ sage configure
Access key id: <AWS Access Key ID>
Secret access key: <AWS Secret Access Key>
Company: <Name of your organization>
Owner: <Name of your team>
Key pair name: <Name of the key pair> (Optional - if NOT provided it will be created with a new private key)
Private key file: <Absolute path to private key file> (required only if Key pair name was provided)
$ sage provision
Service: <Name of your service>
Instance type [t3.small]: <Instance type> (Optional, defaults to t3.small)
Spot instance price [0.1]: <Spot instance price> (Optional, defaults to $0.1 per instance)
Cluster size [1]: <Cluster size> (Optional, defaults to 1 node)
$ sage pwd
$ sage terminate
Service: <Name of your service to terminate>
Jupyter access
Under the hood
Custom IAM policy
Alternatively, instead of assigning user to Administrators group which has access to all AWS services (as described in IAM user), you can create separate Group named Provisioners with more restrictive policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "ec2:*",
"Effect": "Allow",
"Resource": "*"
},
{
"Action": "rds:*",
"Effect": "Allow",
"Resource": "*"
},
{
"Action": "route53:*",
"Effect": "Allow",
"Resource": "*"
}
]
}
Then assign the user to the Provisioners group which has access to a subset of AWS services that are sufficient to orchestrate the cluster.
SSH access
$ ssh -i <path to private key file> ubuntu@<host>
where path to private key file is ../venv/lib/python3.X/site-packages/sagebase/.ssh/pkey.pem
Metadata
Release files for sagecreator 0.1.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sagecreator-0.1.1.6.tar.gz | 46.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sagecreator-0.1.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 100.2 kB
Release files / sagecreator-0.1.1.6.tar.gz
| Download URL | sagecreator-0.1.1.6.tar.gz |
|---|---|
| Size | 46.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f9133cd4fc37f19f62a4f77bc87513ba364a56549c9cadd873f2ff3e618ba37
|
|
BLAKE2b-256 checksum How to use checksums |
d043a22809aef1927ed2fb7172cd48d54934609b7dd118971b16f65277e0c6e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Release files / sagecreator-0.1.1.6-py3-none-any.whl
| Download URL | sagecreator-0.1.1.6-py3-none-any.whl |
|---|---|
| Size | 54.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ff3d60612c2d91116fd722a5d9773639755b25cd1c83197597b708b13f74c73
|
|
BLAKE2b-256 checksum How to use checksums |
390863ca720693f43404f91f042002ab6bf36b63931b1cb0ee5a4c66c5aadecd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|