Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 910 Bytes

File metadata and controls

24 lines (16 loc) · 910 Bytes

Small Test Using Terraform

This repo contains a sample code to run a cluster of EC2 Instances in an Auto Scaling Group + ELB

Quick start

  1. brew install terraform.
  2. Set your AWS credentials as the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
  3. make orchestrate (make orchestrate = make build + terraform apply)
  4. Run terraform plan.
  5. If the plan looks good, run terraform apply.

Additional info

  1. cd terraform and run terraform plan to check what are you gonna do in your aws
  2. terraform apply (if there is not the binary of the api build it will fail make orchestrate it's better solution)

make orchestrate = make build + terraform apply

Nice To Have

  1. Add Deploy in the make and rollback (codedeploy aws)
  2. Provisioning the EC2 Image For example to (create service in order to start using sudo service {{ item }} start ...