Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an option for users to specify a service account JSON file for GCP #162

Open
Brianalmeida opened this issue Aug 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Brianalmeida
Copy link

Currently, it seems that for upstream GCP recipes require the user to download and use Google's SDK. Perhaps we can give the option to users to specify a service account json file and use that to authenticate with GCP.

For reference, Rancher's quickstart project has this for GCP:

Provider.tf:

provider "google" {
  credentials = file(var.gcp_account_json)
  project     = var.gcp_project
  region      = var.gcp_region
  zone        = var.gcp_zone
}

Varaibles.tf:

variable "gcp_account_json" {
  type        = string
  description = "File path and name of service account access token file."
}

tfvars file:

# File path and name of service account access token file.
gcp_account_json = ""

# GCP project in which the quickstart will be deployed.
gcp_project = ""
@Brianalmeida Brianalmeida added the enhancement New feature or request label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant