-
Notifications
You must be signed in to change notification settings - Fork 545
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
Add use_tf_var_google_credentials_env_var variable #377
Add use_tf_var_google_credentials_env_var variable #377
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
Could you also make sure to add this to the variant submodules? (./gsuite_enabled/ and ./shared_vpc/)
Thanks for the review! I've added it to the variant modules as requested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Just one final thing, could you run make generate_docs
?
@morgante Docs updated as requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, just noticed a small bug. Please fix & regenerate thanks!
modules/core_project_factory/main.tf
Outdated
@@ -185,7 +186,8 @@ module "gcloud_deprivilege" { | |||
source = "terraform-google-modules/gcloud/google" | |||
version = "~> 0.5.0" | |||
|
|||
enabled = var.default_service_account == "deprivilege" | |||
enabled = var.default_service_account == "deprivilege" | |||
use_tf_google_credentials_env_var = use_tf_google_credentials_env_var |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use_tf_google_credentials_env_var = use_tf_google_credentials_env_var | |
use_tf_google_credentials_env_var = var.use_tf_google_credentials_env_var |
modules/core_project_factory/main.tf
Outdated
@@ -210,7 +212,8 @@ module "gcloud_disable" { | |||
source = "terraform-google-modules/gcloud/google" | |||
version = "~> 0.5.0" | |||
|
|||
enabled = var.default_service_account == "disable" | |||
enabled = var.default_service_account == "disable" | |||
use_tf_google_credentials_env_var = use_tf_google_credentials_env_var |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use_tf_google_credentials_env_var = use_tf_google_credentials_env_var | |
use_tf_google_credentials_env_var = var.use_tf_google_credentials_env_var |
variables.tf
Outdated
@@ -179,6 +179,12 @@ variable "pip_executable_path" { | |||
default = "pip3" | |||
} | |||
|
|||
variable "use_tf_google_credentials_env_var" { | |||
description = "Use GOOGLE_CREDENTIALS environment variable to run gcloud auth activate-service-account with." | |||
type = string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type = string | |
type = bool |
@morgante Thanks for the thorough review, I have updated the reference and variable type now. |
Thanks for adding this and being patient with the review process. |
Fixes #380.