Skip to content

mjuuso/provisioning_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Provision a simple environment in AWS using Terraform and Chef

This is an example of how to provision a simple environment in AWS using Terraform and Chef.

Once run, you will end up with:

  • a round-robin load balancer node running nginx
  • two application nodes running a simple Golang application located in src/
  • supporting resources in AWS (SSH key pair, Security Groups, VPC, subnets, etc.)

The lightweight wrapper script run.sh will create a SSH key pair and makes sure you have all the prerequisites needed to run the example. The simple Golang application is included pre-built in the Chef cookbook example_app.

To run:

./run.sh <aws_access_key> <aws_secret_key>

To destroy the environment and all resources the run script created, run the following:

terraform destroy -var aws_access_key=<aws_access_key> -var aws_secret_key=<aws_secret_key>

The repository includes a sample Jenkinsfile that can be used to build a Continuous Delivery pipeline for the application.

About

Provision a simple environment in AWS using Terraform and Chef

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published