File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 16
16
17
17
echo " #!/usr/bin/env bash" > ../source.sh
18
18
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
21
21
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
24
24
25
25
sa_json=$( terraform output sa_key)
26
26
# shellcheck disable=SC2086
27
27
echo " export SERVICE_ACCOUNT_JSON='$( echo $sa_json | base64 --decode) '" >> ../source.sh
28
28
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
Original file line number Diff line number Diff line change @@ -26,3 +26,7 @@ output "sa_key" {
26
26
output "compute_engine_service_accounts" {
27
27
value = [google_service_account . gke_sa_1 . email , google_service_account . gke_sa_2 . email ]
28
28
}
29
+
30
+ output "registry_project_id" {
31
+ value = module. gke-project-1 . project_id
32
+ }
You can’t perform that action at this time.
0 commit comments