Skip to content

Commit

Permalink
fix for gcloud cli
Browse files Browse the repository at this point in the history
  • Loading branch information
amanpruthi committed Jun 18, 2024
1 parent 0619bd6 commit e2c3aab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/private_link/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data "google_client_config" "current" {}
# create_cmd_body = "compute forwarding-rules list --format=json > lb_details.json"
# }

resource "null_resource" "install_dependencies" {
resource "null_resource" "install_depend" {
provisioner "local-exec" {
command = <<EOT
# Download and install jq
Expand All @@ -22,7 +22,7 @@ resource "null_resource" "install_dependencies" {
./google-cloud-sdk/install.sh -q
/bin/bash /home/tfc-agent/.tfc-agent/component/terraform/runs/run-KruyrUQKD98yfjEf/config/services/deployer/terraform/deploy/google/single-tenant/google-cloud-sdk/path.bash.inc
echo $GOOGLE_CREDENTIALS
printf '%s' "$$GOOGLE_CREDENTIALS" > creds.json
echo $GOOGLE_CREDENTIALS > creds.json
echo "printing creds"
cat creds.json
google-cloud-sdk/bin/gcloud auth activate-service-account [email protected] --key-file=creds.json --project=wandb-qa
Expand All @@ -34,7 +34,7 @@ resource "null_resource" "install_dependencies" {

data "external" "filtered_lb_names" {
program = ["sh", "-c", "cat filtered_lb_names.txt | jq -R -s '{\"load_balancer_name\": .}'"]
depends_on = [null_resource.install_dependencies]
depends_on = [null_resource.install_depend]
}

locals {
Expand Down

0 comments on commit e2c3aab

Please sign in to comment.