This repo contains a sample code to run a cluster of EC2 Instances in an Auto Scaling Group + ELB
brew install terraform.- Set your AWS credentials as the environment variables
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY. make orchestrate(make orchestrate=make build+terraform apply)- Run
terraform plan. - If the plan looks good, run
terraform apply.
cd terraformand runterraform planto check what are you gonna do in your awsterraform apply(if there is not the binary of the api build it will failmake orchestrateit's better solution)
make orchestrate = make build + terraform apply
- Add Deploy in the make and rollback (codedeploy aws)
- Provisioning the EC2 Image For example to (create service in order to start using
sudo service {{ item }} start...