Skip to content

0xvishal/tendermint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Infrastructure components

1. 1 VPC with 10.0.0.0/24 CIDR
2. 6 public subnets & 6 private subnets
3. 1 ELB for golang app
4. 3 golang EC2 Instances in private subnets
5. 1 Ansible server in private subnet
6. 1 EC2 instance in public subnet to access all resources in private subnets 

Create all resources using Terraform

Go to in terraform directory and run following commands
$ terraform init
$ terraform plan
$ terraform apply

Ansible

1. All Ansible prerequisite setup by Terraform
2. Created a passwordless connection with all golang server
3. Created a Ansible playbook(ansible.yaml) for configure and deploment golang app
To configure all golang server run following from Ansible server
$ ansible-playbook playbook/golang.yaml

ELB

http://foobar-terraform-elb-540723895.us-east-1.elb.amazonaws.com/

DNS

http://tenermint.redmonkey.in/

Resoures access

All resoures have a user ubuntu
common: 3.216.23.226 (Public)
golang1: 10.0.0.200 (Private)
golang2: 10.0.0.142 (Private)
golang3: 10.0.0.180 (Private)
ansible: 10.0.0.196 (Private)

To access common EC2 Instance

  $ ssh -i tendermint.pem [email protected]

We can access all private resources from common instance(3.216.23.226)

$ ssh golang1
$ ssh golang2
$ ssh golang3
$ ssh ansible

tendermint.pem file shared in Email

In case I have missed or need to change anything please let me know.

About

Tendermint

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages