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

Cloud Build Service Account Access Denied #70

Open
afleisc opened this issue May 30, 2024 · 0 comments
Open

Cloud Build Service Account Access Denied #70

afleisc opened this issue May 30, 2024 · 0 comments

Comments

@afleisc
Copy link

afleisc commented May 30, 2024

When following the terraform deploy steps, I get the following error:

AccessDeniedException: 403 758130749455-compute@developer.gserviceaccount.com does not have storage.objects.list access to the Google Cloud Storage bucket. Permission 'storage.objects.list' denied on resource (or it may not exist).
Fetching storage object: gs://afleisc-udf-test_cloudbuild/source/1717078378.321001-d8ace147e8aa4b8e888d37b62b6cde32.tgz#1717078379063241

I believe this is due to the changes mentioned in this doc: https://cloud.google.com/build/docs/cloud-build-service-account-updates

With new projects, Cloud Build will use the compute engine service account which doesn't have access to buckets for logging by default. I ran into the same issue with a project of mine, and I believe the solution is to create a separate SA for the Cloud Build and give it the Logs Writer (roles/logging.logWriter) role

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