Python script using Fabric and Boto to manage deploy of a Vertica cluster into AWS.
It creates a standalone VPC environment. One node is designated as the Internet Gateway and the bootstrap node where the administrative commands are run.
pip install fabric
pip install boto
/etc/boto.cfg
[Credentials]
aws_access_key_id=<your_key>
aws_secret_access_key=<your_key>
~/.aws/<aws_region>/<cluster_name>.pem
~/.aws/vlicense.dat
~/.ssh/id_rsa.pub
fab --set region='us-east-1',cluster_name='my_vertica_cluster' print_status
fab --set region='us-east-1',cluster_name='my_vertica_cluster' deploy_cluster:total_nodes=3
fab --set region='us-east-1',cluster_name='my_vertica_cluster' deploy_cluster:total_nodes=3,eip_allocation_id=eipalloc-xxxxxx
deploy to an existing vpc cluster, it will consider the gateway node to be the bootstrap if there are existing nodes in the cluster, it will attempt to bring the number of nodes in the cluster to total_nodes
fab --set region='us-east-1',cluster_name='my_vertica_cluster' deploy_cluster:total_nodes=3,vpc_id=vpc-xxxxxxxx
#terminate cluster fab --set region='us-east-1',cluster_name='my_vertica_cluster' terminate_cluster:vpc_id=vpc-xxxxxxxx