I am trying to use the serverless for GCP Cloud Function I have followed the documentation one by one but I am facing issues while deploying the function to GCP. I am facing the following error
Error: Deployment failed: RESOURCE_ERROR
{"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"403","ResourceErrorMessage":{"code":403,"message":"Permission 'cloudfunctions.functions.create' denied on resource 'projects/307999787516/locations/us-central1/functions/my-service-dev-first' (or resource may not exist).","status":"PERMISSION_DENIED","statusMessage":"Forbidden","requestPath":"https://cloudfunctions.googleapis.com/v1/projects/307999787516/locations/us-central1/functions","httpMethod":"POST"}}
at throwErrorIfDeploymentFails (/home/demo/steve/workspace/new/temp/my-service/node_modules/serverless-google-cloudfunctions/shared/monitorDeployment.js:71:11)
at provider.request.then (/home/demo/steve/workspace/new/temp/my-service/node_modules/serverless-google-cloudfunctions/shared/monitorDeployment.js:42:17)
at process._tickCallback (internal/process/next_tick.js:68:7)
I am using the service account credentials for this deployment I have used the same template the serverless generates on default. Also my service account has following permissions but it still not working and throwing above error.
1.Cloud Functions Admin
2.Cloud Functions developer
3.Deployment manager editor
4.logging admin
5.storage admin
Can anyone help me out here