hashidays-london
hashidays-london copied to clipboard
Code used for the demo of Going Multi-Cloud with Terraform and Nomad
Going Multi-Cloud with Terraform and Nomad
This is the code used for my Going Multi-Cloud with Terraform and Nomad talk, originally given at HashiDays London.
This code contains:
- A Packer config for building an image capable of running both Consul and Nomad.
- A Terraform config to stand up an AWS cluster using the image, a GCP cluster using the image, and a VPN connecting the two of them.
Authentication
The easiest way to authenticate for this is to use the Application Default Credentials for Google, which can be populated using gcloud auth application-default login
, and to use the AWS shared credentials file, which can be set using aws configure
.
Building the Packer Image
To build the Packer Image, change to the nomad-image
directory and run packer build image.json
.
Standing Up the Cluster
To stand up the cluster, run terraform apply
from the root of the repository.
Support
This code was used for a demo. It is unmaintained by default--issues and pull requests will be ignored. Please use the Packer and Terraform community channels for support for each project.
This code is for demonstration purposes. It may not reflect all the best practices, and is not advice on how to set up your production infrastructure.