amiDMast / terraform-ha-nginx

Create HA Web server using terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-ha-nginx

Create HA Web server using terraform

Requirements

Terraform 0.12.6 version or above

Initialize

Run terraform init to initialize modules.

export AWS_ACCESS_KEY_ID=********** 
export AWS_SECRET_ACCESS_KEY=************ 
terraform init 

Build

The terraform apply command is used to apply the changes required to reach the desired state of the configuration, or the pre-determined set of actions generated by a terraform plan execution plan

terraform apply 

Deleting the stack

Run terraform destroy

terraform destroy

Run with variables

Use -var="*****"

terraform apply -var="region=eu-west-1" -var="key=id_rsa"

Destroy

terraform destroy -var="region=eu-west-1" -var="key=id_rsa"

About

Create HA Web server using terraform


Languages

Language:HCL 96.9%Language:Shell 3.1%