Simple terraform recipes for standing up and testing GCP functionality
Install from https://www.terraform.io/downloads.html
Homebrew(Mac): brew install terraform
This is optional but best practice, see https://www.terraform.io/docs/providers/google/guides/provider_reference.html#credentials
Go to https://console.cloud.google.com/iam-admin/serviceaccounts/create
- Create a new service account called "terraform" (actual name does not matter but it helps to indicate what it is for).
- Grant "Project Editor" access to this service account.
- Select the new service account and create a
json
key; save it locally. This will be the path to enter forterraform-gcp-sa-file
in variables.tf
variable "terraform-gcp-sa-file" {
default = "/path/to/account.json"
}
Install from https://cloud.google.com/sdk/docs/downloads-versioned-archives
Homebrew(Mac): brew cask install google-cloud-sdk
Install from https://kubernetes.io/docs/tasks/tools/install-kubectl/
Homebrew(Mac): brew install kubectl
Install from https://github.com/helm/helm
Homebrew(Mac): brew install helm