Materialize a YAML configuration into AWS EC2
Project description
ec2yaml
========
Take a yaml file like this ::
app:
name: foo
owner: adam venturella
location: us-west-2
key: <optional>
secret: <optional>
instances:
app_server:
key_name: aventurella
image: ami-6ac2a85a
size: m3.medium
zone: us-west-2c
tags:
- key1: value1
- key2: value2
ip_address: foo
security_groups:
- ssh
- http
- https
- foo-salt
- foo-ssh
volumes:
- foo-volume: /dev/sdh
elastic_ips:
- foo
volumes:
foo-volume:
size: 1
zone: us-west-2c
tags:
- key1: value1
- key2: value2
security_groups:
foo-ssh:
ip_protocol: tcp
from_port: 1022
to_port: 1022
cidr_ip: '0.0.0.0/0'
foo-salt:
ip_protocol: tcp
from_port: 2000
to_port: 65535
cidr_ip: '0.0.0.0/0'
And materialize it into AWS EC2 accordingly.
Command line tool ::
Usage:
ec2yaml <conf> [(--key=<key> --secret=<secret>)\
| --boto-profile=<boto-profile>]\
[--loglevel=<level>]
Options:
-h --help Show this screen.
-v --version Show version.
-k --key=<key> AWS access key ID
-s --secret=<secret> AWS secret access key
-bp --boto-profile=<boto-profile> Boto Profile Name
-l --loglevel=<level> Log level to display [default: info]
Release History
---------------
0.0.1 (2014-05-07)
++++++++++++++++++
**API Changes**
**Bugfixes**
0.0.6 (2014-05-07)
++++++++++++++++++
**API Changes**
- Instances can now be arbitrarily tagged ::
instances:
app_server:
key_name: aventurella
image: ami-6ac2a85a
size: m3.medium
zone: us-west-2c
tags:
- key1: value1
- key2: value2
ip_address: foo
security_groups:
- ssh
- http
- https
- foo-salt
- foo-ssh
volumes:
- foo-volume: /dev/sdh
- Volumes can now be arbitrarily tagged ::
volumes:
foo-volume:
size: 1
zone: us-west-2c
tags:
- key1: value1
- key2: value2
0.0.8 (2014-05-08)
++++++++++++++++++
**API Changes**
- A boto profile can now be specified in the command line arguments
**Bugfixes**
- Fixes an issue with a key and secret from the command line not
being properly assigned.
========
Take a yaml file like this ::
app:
name: foo
owner: adam venturella
location: us-west-2
key: <optional>
secret: <optional>
instances:
app_server:
key_name: aventurella
image: ami-6ac2a85a
size: m3.medium
zone: us-west-2c
tags:
- key1: value1
- key2: value2
ip_address: foo
security_groups:
- ssh
- http
- https
- foo-salt
- foo-ssh
volumes:
- foo-volume: /dev/sdh
elastic_ips:
- foo
volumes:
foo-volume:
size: 1
zone: us-west-2c
tags:
- key1: value1
- key2: value2
security_groups:
foo-ssh:
ip_protocol: tcp
from_port: 1022
to_port: 1022
cidr_ip: '0.0.0.0/0'
foo-salt:
ip_protocol: tcp
from_port: 2000
to_port: 65535
cidr_ip: '0.0.0.0/0'
And materialize it into AWS EC2 accordingly.
Command line tool ::
Usage:
ec2yaml <conf> [(--key=<key> --secret=<secret>)\
| --boto-profile=<boto-profile>]\
[--loglevel=<level>]
Options:
-h --help Show this screen.
-v --version Show version.
-k --key=<key> AWS access key ID
-s --secret=<secret> AWS secret access key
-bp --boto-profile=<boto-profile> Boto Profile Name
-l --loglevel=<level> Log level to display [default: info]
Release History
---------------
0.0.1 (2014-05-07)
++++++++++++++++++
**API Changes**
**Bugfixes**
0.0.6 (2014-05-07)
++++++++++++++++++
**API Changes**
- Instances can now be arbitrarily tagged ::
instances:
app_server:
key_name: aventurella
image: ami-6ac2a85a
size: m3.medium
zone: us-west-2c
tags:
- key1: value1
- key2: value2
ip_address: foo
security_groups:
- ssh
- http
- https
- foo-salt
- foo-ssh
volumes:
- foo-volume: /dev/sdh
- Volumes can now be arbitrarily tagged ::
volumes:
foo-volume:
size: 1
zone: us-west-2c
tags:
- key1: value1
- key2: value2
0.0.8 (2014-05-08)
++++++++++++++++++
**API Changes**
- A boto profile can now be specified in the command line arguments
**Bugfixes**
- Fixes an issue with a key and secret from the command line not
being properly assigned.
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
ec2yaml-0.0.8.tar.gz
(9.7 kB
view details)
File details
Details for the file ec2yaml-0.0.8.tar.gz
.
File metadata
- Download URL: ec2yaml-0.0.8.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | faf6c2aeeaa8a5702fbd23696b3d1b088d56ca5298c1dde53ae987e47b9bc71a |
|
MD5 | 9d747946460310562788ba2b16762b98 |
|
BLAKE2b-256 | 0be5ef816c93f2a19df3ff3f177067ca5d8d8b9e9bda623578b7bbbaf2bc93d5 |