Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The GOOGLE_PRJECT environment variable doesn't seem to work #85

Open
crystaldust opened this issue Aug 31, 2017 · 0 comments
Open

The GOOGLE_PRJECT environment variable doesn't seem to work #85

crystaldust opened this issue Aug 31, 2017 · 0 comments

Comments

@crystaldust
Copy link

crystaldust commented Aug 31, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant