https://github.com/maxenglander/etcd-terraform-example
Example demonstrating how to create self-discovering Etcd clusters with Terraform
https://github.com/maxenglander/etcd-terraform-example
Last synced: 12 months ago
JSON representation
Example demonstrating how to create self-discovering Etcd clusters with Terraform
- Host: GitHub
- URL: https://github.com/maxenglander/etcd-terraform-example
- Owner: maxenglander
- Created: 2015-06-09T05:18:57.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-09T05:54:57.000Z (about 11 years ago)
- Last Synced: 2025-03-17T11:25:03.486Z (over 1 year ago)
- Language: Smarty
- Size: 113 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](http://maxenglander.com/2015/06/09/etcd-clusters-with-terraform.html).
## Requirements
1. Terraform
1. A Google Cloud account
## Setup
1. Clone this repo
1. Log in to your Google Cloud account
1. Create a new project, e.g. "etcd-terraform"
1. Enable the Google Compute API for the project
1. 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.