I am unable to deploy the cloud function. I followed exactly as the video:
gcloud functions deploy check_images –runtime python37 –trigger-resource lee-acloud-guru-uploads –trigger-event google.storage.object.finalize
This is the message I get:
ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: could not resolve storage source: googleapi: Error 404: Not Found, notFound
I set the permissions correctly for the service account and it still keeps giving me the error.
I’m not able to reproduce your error, and the lab is working fine for me.
This error might suggest that the function can’t find the bucket to bind to. Are you sure the
lee-acloud-guru-uploads bucket exists with that exact name?
Hope this helps!