You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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