Skip to content

Example demonstrating how to create self-discovering Etcd clusters with Terraform

Notifications You must be signed in to change notification settings

maxenglander/etcd-terraform-example

Repository files navigation

Etcd-Terraform Example

This repo is a demonstration of creating self-discovering Etcd clusters with Terraform.

Google is the cloud provider used here, but any other cloud provider supported by both CoreOS and Terraform would work just as well (e.g. AWS).

For more background information, see here.

Requirements

  1. Terraform
  2. A Google Cloud account

Setup

  1. Clone this repo
  2. Log in to your Google Cloud account
  3. Create a new project, e.g. "etcd-terraform"
  4. Enable the Google Compute API for the project
  5. Create a New Client ID (service account)

The last step will provide you with the credentials you will need to authenticate with Google Cloud via Terraform. Put them somewhere safe.

Configure Terraform

In your local clone of this repo, you will need to update terraform.tfvars.json with your Google Project ID and the path to your credentials.

Boot Cluster

To boot the cluster, simply run the following inside your local clone of this repo.

$ terraform apply

Notes

The etcd_discovery_url.txt is purposefully empty. Terraform complains if you try to read with ${file(...)} from a non-existent file.

About

Example demonstrating how to create self-discovering Etcd clusters with Terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages