Skip to content

coboshm/terraform_cluster_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ...

About

Testing Terraform in AWS, deploying a mini Golang API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors