Infrastructure automation for Hey's various Blockchain nodes (both Ethereum mainchain and Loom sidechain).
- Set up AWS credentials and save them under the
hey
profile name in~/.aws/credentials
- Setup AWS VPC and note its id, subnet id, subnet cidr in the inventory file (both in the general vars and in the hosts description for the subnet)
- Run playbook
AWS_PROFILE=hey ansible-playbook -i inventory.yaml create-instances.yaml -vv
- Update inventory with IP numbers
- Provision loom
AWS_PROFILE=hey ansible-playbook -i inventory.yml playbook.yml --key-file ~/.ssh/loom_non_validator.pem --user ubuntu