Skip to content
Example demonstrating how to create self-discovering Etcd clusters with Terraform
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

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.


  1. Terraform
  2. A Google Cloud account


  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


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

You can’t perform that action at this time.