cross-cloud
cross-cloud copied to clipboard
The GOOGLE_PRJECT environment variable doesn't seem to work
Hi, I have tried running the example in README:
export GOOGLE_CREDENTIALS=$(cat ~/opshub-master-gce-credential.json)
docker run \
-v '/tmp/data:/cncf/data' \
-e NAME='cross-cloud' \
-e CLOUD='gke' \
-e COMMAND='deploy' \
-e BACKEND='file' \
-e GOOGLE_REGION='us-central1' \
-e GOOGLE_PROJECT='my-own-project' \
-e GOOGLE_CREDENTIALS="${GOOGLE_CREDENTIALS}" \
-ti registry.cncf.ci/cncf/cross-cloud/provisioning:ci-stable-v0-2-0
With the GOOGLE_PROJECT env specified, but I got the error:
google_container_cluster.cncf: googleapi: Error 403: \
Required "container.clusters.create" permission for "projects/test-163823"., forbidden
I noticed that the project test-163823 is the default variable value clared at gke/input.tf, so when running provision.sh, it still takes the default value from gke/input.tf.