Hello! I have a Cloud Function Pub/Sub question. ...
# google-cloud
s
Hello! I have a Cloud Function Pub/Sub question. I have a topic and a subscriber that works as expected. I create a second subscriber the same way (same file, same function
onMessagePublished()
). After I run
pulumi up
, I see that there's the Cloud Function function created but I also encountered this error. How do I go about this?
Copy code
Type                                           Name                       Status                  Info
     pulumi:pulumi:Stack                            <stack-name>  **failed**              1 error; 2 messages
     └─ gcp:pubsub:Topic                            <topic-name>                                       
        └─ gcp:cloudfunctions:CallbackFunction      <function-name>                                
 +         └─ gcp:cloudfunctions:FunctionIamMember  <name>-invoker  **creating failed**     1 error

Diagnostics:
  gcp:cloudfunctions:FunctionIamMember (<name>-invoker):
    error: 1 error occurred:
        * Error applying IAM policy for cloudfunctions cloudfunction "<project-path>": Error setting IAM policy for cloudfunctions cloudfunction "<project-path>": googleapi: Error 403: Permission 'cloudfunctions.functions.setIamPolicy' denied on resource '<project-path>' (or resource may not exist).
 
  pulumi:pulumi:Stack (<stack-name>):
    error: update failed
 
    WARNING: No configurations found in configuration directory:<dir>/pulumi/config
    WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.