Hi,
I had a cloud function and it was running okay. After a while it stopped working suddenly. I suggested that I deleted a service account by mistake and it was a part of my project, it could be a reason for that. I used that deleted service account for build service account.
When I go cloud function > permissions >
Warning: You must assign the Invoker role (roles/run.invoker) through Cloud Run if you want to allow the function to receive requests from additional principals or other given authorities in IAM.
Note: if you want to achieve the equivalent of assigning the Cloud Functions "Admin" or "Developer" role to a Cloud Run function 1st gen, you need to assign Cloud Functions "Admin" or "Developer" to this function and assign "Cloud Run Invoker" to the Cloud Run service.
Hi @Ramo,
Welcome to Google Cloud Community!
I understand that you are encountering an issue with updating and deploying your Cloud Function. This might be related to the deletion of the service account used for the build process.
Here are some workarounds that may help:
As for the warning message, it indicates that you need to assign the Invoker role if you want Cloud Function to receive requests from additional principals or other authorized entities. For more details, you can refer to the Authenticating for invocation documentation.
I hope the above information is helpful.