An open API service indexing awesome lists of open source software.

https://github.com/dcc6fvo/terraform

Terraform scripts
https://github.com/dcc6fvo/terraform

aws cloud load-balancer nginx serverfarm terraform

Last synced: about 2 months ago
JSON representation

Terraform scripts

Awesome Lists containing this project

README

          

# terraform-app-load-balance

In this terraform/aws script we build a setup with an application load balancer. We will end up with following resources:

- one app load balancer that redirect traffic to two private subnets
- two management instances each in a different public subnet that can be used with Ansible and/or another config. tool
- two webserver instances each in a different private subnet that will respond to the load balancer requests

*NAT Gateways, Routers, Databases were abstract from the design but are necessary


Advanced real world example of vagrant and virtualbox configuration

Prerequisites
-----------------------
- Terraform
- AWS CLI

Installation && Running
-----------------------

1) Do a git clone of the project:

git clone https://github.com/dcc6fvo/terraform-app-load-balance

2) Change key info field of aws-instances with your current keys! Subs. the key_name parameter with your own from following files: ./main.tf; ./modules/main.tf; ./management.tf

3) Access the newly created folder with the git clone command and type the following command:

terraform init

4) Then creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure:

terraform plan

5) Finally, the command that executes the actions proposed in a terraform plan (it is used to deploy your infrastructure):

terraform apply -auto-approve

To destroy all the configurations:

terraform destroy

# terraform-basic-setup

In this very basic terraform/aws script we manage to work with 2 AWS regions. After running, the program will create:

- one public instance in sa region
- one public instance in us region
- four private instances in sa region

Prerequisites
-----------------------
- Terraform
- AWS CLI

Installation && Running
-----------------------

Do a git clone of the project:

git clone https://github.com/dcc6fvo/terraform-basic-setup

Change key-pair field of aws-instances with your current keys:

vim main.tf

Access the newly created folder with the git clone command and type the following command:

terraform init

Then creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure:

terraform plan

Finally, the command that executes the actions proposed in a terraform plan (it is used to deploy your infrastructure):

terraform apply -auto-approve

To destroy all the configurations:

terraform destroy

# terraform-multi-env

# terraform-super-basic