c— title: “gcf/ERR/2022_001” linkTitle: “ERR/2022_001” weight: 1 type: docs description: > Cloud Functions service agent has the cloudfunctions.serviceAgent role.

Product: Cloud Functions
Rule class: ERR - Something that is very likely to be wrong

Description

The Cloud Functions Service Agent is missing the cloudfunctions.serviceAgent role, which gives Cloud Functions Service Agent access to managed resources. You can resolve this error by granting the cloudfunctions.serviceAgent IAM role to service-PROJECT_NUMBER@gcf-admin-robot.iam.gserviceaccount.com.

Remediation

Further information