Skip to content

Commit 0be30c8

Browse files
committed
fix outputs
1 parent b06c425 commit 0be30c8

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

test/setup/make_source.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616

1717
echo "#!/usr/bin/env bash" > ../source.sh
1818

19-
project_id=$(terraform output project_id)
20-
echo "export TF_VAR_project_id='$project_id'" >> ../source.sh
19+
project_ids=$(terraform output project_ids)
20+
echo "export TF_VAR_project_ids='$project_ids'" >> ../source.sh
2121

22-
# We use the same project for registry project in the tests.
23-
echo "export TF_VAR_registry_project_id='$project_id'" >> ../source.sh
22+
registry_project_id=$(terraform output registry_project_id)
23+
echo "export TF_VAR_registry_project_id='$registry_project_id'" >> ../source.sh
2424

2525
sa_json=$(terraform output sa_key)
2626
# shellcheck disable=SC2086
2727
echo "export SERVICE_ACCOUNT_JSON='$(echo $sa_json | base64 --decode)'" >> ../source.sh
2828

29-
compute_engine_service_account=$(terraform output compute_engine_service_account)
30-
echo "export TF_VAR_compute_engine_service_account='$compute_engine_service_account'" >> ../source.sh
29+
compute_engine_service_accounts=$(terraform output compute_engine_service_accounts)
30+
echo "export TF_VAR_compute_engine_service_accounts='$compute_engine_service_accounts'" >> ../source.sh

test/setup/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ output "sa_key" {
2626
output "compute_engine_service_accounts" {
2727
value = [google_service_account.gke_sa_1.email, google_service_account.gke_sa_2.email]
2828
}
29+
30+
output "registry_project_id" {
31+
value = module.gke-project-1.project_id
32+
}

0 commit comments

Comments
 (0)