Deploy and configure a remote, Tendermint-flavored Matrix testnet on AWS. Let's use an Ansible playbook to trigger Terraform.
# First make sure you set up your AWS access and secret keys via CLI
aws configure
Create your own keypair and upload it to all the supported regions:
- us-east-1
- us-east-2
- us-west-1
- ap-northeast-2
- ap-southeast-2
- eu-central-1
- eu-west-1
Note: There exists an AWS test keypair already on all the supported regions. If you're my friend I'll send it to you in private.
Configure the number of nodes in each region, keypair_name, instance_types and more in the root main.tf file.
terraform init
ansible-playbook deploy.yaml
This command will:
- Create the necessary AWS EC2 resources in each region (using Terraform).
- On the first (0th) node, install requirements and initialize the network (with Starport)
- On the rest of the nodes, install the app binary, do configurations and join the network [WIP]
You can also only run the deploy:
terraform apply
Check what's deployed:
terraform output
terraform destroy
[WIP]
[WIP]