Can anyone provide or point to a working example that uses the (currently alpha) --update-env-vars flag within the cloud run job execute command context?
gcloud alpha run jobs execute [JOB] --update-env-vars=...
I have tried executing the command using the project owner account w/ iam.serviceAccountUser rights to the cloud run job's service account. I always encounter ERROR: (gcloud.alpha.run.jobs.execute) PERMISSION_DENIED: The caller does not have permission.
I can update the job's env variables using the same user account but cannot execute the job with the flag. Without the flag, I can execute perfectly fine. I detailed my problem on StackOverflow with no luck. Am I missing something or could there potentially be a bug?
Solved! Go to Solution.
Hi, this is an Alpha feature; to use it, your project has to be specially enabled.
If your project has been enabled for this feature and it still isn't working, please let me know.
Hi, this is an Alpha feature; to use it, your project has to be specially enabled.
If your project has been enabled for this feature and it still isn't working, please let me know.
Thank you. TIL "alpha testing is to verify functionality and gather feedback from a limited set of customers". Unless your project is enabled to test the alpha feature(s), it will not work. Reference: https://support.google.com/a/answer/11202276