<commit_before># Stack Deploy Utility for Zetta Cloud

Want to create a Zetta deployment with Latest CoreOS? Here's how.

## Vagrant

### Steps

1. Generate CoreOS box with Packer
  - `./generate_box.sh vagrant`
2. Get Discovery URL
  - `GET http://discovery.etcd.io/new`
3. Update Configuration
  - `Update discovery_url in user-data file`
4. Start Cluster
  - `vagrant up`
5. Ansible Provision
  - `./setup.sh && ./fleet.sh`

## AWS

1. Generate CoreOS box with Packer
  - `./generate_box.sh aws`
2. Get Discovery URL
  - `GET http://discovery.etcd.io/new`
3. Update Configuration
  - `Update discovery_url in aws-cluster.yml`
  - `Update AMI in cloud-formation.json`
4. Deploy via CloudFormation
  - `ansible-playbook aws-cluster.yml`
5. Ansible Provision
  - `TBD`

## Dependencies

- Vagrant
- Ansible
- Packer
<commit_msg>Updates to docs to include deps and wiring up AWS.<commit_after># Stack Deploy Utility for Zetta Cloud

Want to create a Zetta deployment with Latest CoreOS? Here's how.

## Vagrant

### Steps

1. Generate CoreOS box with Packer
  - `./generate_box.sh vagrant`
2. Get Discovery URL
  - `GET http://discovery.etcd.io/new`
3. Update Configuration
  - `Update discovery_url in user-data file`
4. Start Cluster
  - `vagrant up`
5. Ansible Provision
  - `./setup.sh && ./fleet.sh`

## AWS

1. Generate CoreOS box with Packer
  - `./generate_box.sh aws`
2. Get Discovery URL
  - `GET http://discovery.etcd.io/new`
3. Update Configuration
  - `Update discovery_url in aws-cluster.yml`
  - `Update AMI in cloud-formation.json`
4. Deploy via CloudFormation
  - `ansible-playbook aws-cluster.yml`
5. Ansible Provision
  - `TBD`

## Dependencies

- Vagrant
- Ansible
- Packer
- Boto `pip install boto`
- AWS API Credentials

## A note on AWS

You'll want to store your AWS credentials in an environment file. Like below. 

Boto is used by ansible to provision CloudFormation stacks, and boto looks for the two environment variables to access the AWS API.

```bash
export AWS_ACCESS_KEY_ID=""
export AWS_SECRET_ACCESS_KEY=""
```
{'fraction_non_alphanumeric': 0.10567514677103718, 'fraction_numerical': 0.009784735812133072, 'mean_word_length': 3.379014989293362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '581994', 'n_tokens_mistral': 729, 'n_tokens_neox': 692, 'n_words': 244}