This module will create two VPC in two separate AWS regions
This module will create cross-region VPC peering connection
This module will create a needed number of Consul server
- Terraform
- AWS Account
- Basic Consul knowledge
git clone https://github.com/chavo1/aws-env-consul-terraform.git
cd aws-env-consul-terraform
terraform init
terraform apply
- | To spin up the client agents we use Terraform Local Backend - we just reference the data.
Go to the consul_client_dc1 or/and consul_client_dc2 setup a needed count for the clients in main.tf
terraform init
terraform apply
- Kitchen provides a test harness to execute infrastructure code on one or more platforms in isolation.
- Install kitchen.ci
- Install selenium and all its dependencies on Mac with brew
$ brew install selenium-server-standalone
$ brew cask install java
# GeckoDriver for firefox
$ brew install geckodriver
# Chromedriver for chrome
$ brew cask install chromedriver
$ rbenv local 2.6.0
Than simply execute a following commands:
bundle exec kitchen converge
bundle exec kitchen verify
bundle exec kitchen destroy