Skip to content

Commit

Permalink
add conditional for hardcoded-ish service account unique id. there mu…
Browse files Browse the repository at this point in the history
…st be a better way, seems very weird that this cant be a tofu output!
  • Loading branch information
GondekNP committed Feb 27, 2024
1 parent 912c9df commit 53ebc25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .deployment/tofu/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ locals {
aws_region = data.aws_region.current.name
# oidc_provider_domain_url = "https://accounts.google.com"
oidc_provider_domain_url = "accounts.google.com"
gcp_cloud_run_client_id = "117526146749746854545" ## This is the ClientID of the cloud run instance, and can't be output from terraform!
## This is the ClientID of the cloud run service account, and can't be output from terraform!
gcp_cloud_run_client_id = "${terraform.workspace}" == "prod" ? "117526146749746854545" : "101023653831248304550"
}

# Initialize the modules
Expand Down

0 comments on commit 53ebc25

Please sign in to comment.