Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 677 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 677 Bytes

Overview

Basic example for the nomad-datacenter module. Per default the module will be deployed in us-east-1 (virginia) into three AZ's.

Deploy the infrastructure

# terraform init &&\
# terraform plan -out dc.plan -var deploy_profile=<your-profile> -var ami_id=<id of the ami to use for consul/ nomad nodes> &&\
# terraform apply "dc.plan"

# on playground
terraform init &&\
terraform plan -out dc.plan -var deploy_profile=playground -var ami_id=ami-1234567890 &&\
terraform apply "dc.plan"

Destroy the infrastructure

# terraform destroy -var deploy_profile=<your-profile>

# on playground
terraform destroy -var deploy_profile=playground