项目作者: pbar1

项目描述 :
:cloud: Infrastructure as code for my cloud playground accounts
高级语言: HCL
项目地址: git://github.com/pbar1/cloud.git
创建时间: 2019-03-02T22:49:21Z
项目社区:https://github.com/pbar1/cloud

开源协议:MIT License

下载


Pierce’s Cloud

This is basically my scratchpad repo for cloud infrastructure. It uses Terraform backed by Google Cloud Storage (GCS) because it has an excellent always-free tier, and you should always store your state remotely!

Requirements

Terraform

As stated, I’m using Hashicorp Terraform to build the infrastructure in this repo. I’m using this standard for Terraform remote state, always in backend.tf:

  1. terraform {
  2. backend "gcs" {
  3. bucket = "tf-state-390820"
  4. prefix = "cloud/aws/networking" # should mirror repo structure for clarity
  5. }
  6. }

For this to work, set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a path pointing at a JSON file containing your GCP credentials. For example,

  1. export GOOGLE_APPLICATION_CREDENTIALS="$HOME/.config/gcp/credentials.json"

Structure

  1. .
  2. ├── aws
  3. ├── azure
  4. ├── gcp
  5. └── k8s