Created
December 13, 2017 06:23
-
-
Save colemickens/c97d8216aebd792d906ea76882b2326a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "google" { | |
credentials = "${file("~/.credentials/gcp.json")}" | |
project = "cookie-monster-america" | |
region = "us-west1" | |
} | |
module "google-cloud-yoyo" { | |
source = "../../google-cloud/container-linux/kubernetes" | |
# Google Cloud | |
region = "us-west1" | |
dns_zone = "k.mickens.io" | |
dns_zone_name = "k-mickens-io" | |
os_image = "coreos-stable-1576-4-0-v20171206" | |
cluster_name = "yoyo" | |
controller_count = 1 | |
worker_count = 3 | |
ssh_authorized_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD1dGZ0YQ+MgcomNUIdKHuWm4MA9a4BKOSNyo60cbts9ysuP3qahjmyrqYZVd4krjXpCtHSoav1fc2EJLhiJFJc3b+nZIJZtWQoesCTuSKjXV8ZHwSWjoIqjZCNWtOPiNYSYHj4xly5OfdlQavWfPOwwrM57sWTtv+9Ji7sR85x5QkpeVltj5uOVxnC4Tz/UYbN/oWU3PDAhEn7GAvEOLAfXSJLtSkj40+kehB2G0T4voXsZcq9fgFqAQ7ia13qkBkZ8AN9EAgQxbHELKJUmW1j7FDhl6exYhfoqycIDpdHW/ogHsiZi/Ajz/IM9orhyBCrBNN1c8miJk6UxyI+Dy0V cole.mickens@gmail.com" | |
# output assets dir | |
asset_dir = "/home/cole/.clusters/yoyo" | |
} |
maybe adding version constraint for pinning google provider first.
Then do a "export TF_LOG=debug" to turn on debugging to see what is going on.
Next
- terraform init
- terraform plan
provider "google" {
version = "> v1.4.0"/.credentials/gcp.json")}"
credentials = "${file("
project = "cookie-monster-america"
region = "us-west1"
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But it prompts for
provider.google.region
and tries to get an access_token from a url where theproject
is clearly missing from the url segment.