英文:
GCP pub/sub subscription unable to add push type subscription to trigger cloud build
问题
I am a GCP noob and trying to restore a project on GCP which was marked for deletion. Everything else was restored successfully (that is what I think, could be wrong) but the pub/sub topic and subscription were missing. There is a trigger that will initiate a Cloud Build in response to a pub/sub message. I am trying to create a push type subscription for a topic in a lower environment to an endpoint which looks like "rpc://name:CloudBuildPushEndpoint:gslb:google.pubsub.v1.cloudbuildpushendpoint....." in prod (and is working fine in prod). I have not worked too much with Pub/Sub to be very aware of this configuration but whenever I try to create this subscription, I get an error -
I have spent hours searching for something which even looks remotely related to this so that I can have some idea of what could be wrong or in which direction should I proceed. Appreciate any help.
P.S. I have owner privilege to this project.
英文:
I am a GCP noob and trying to restore a project on GCP which was marked for deletion.
Everything else was restored successfully (that is what I think, could be wrong) but the pub/sub topic and subscription were missing.
There is a trigger that will initiate a Cloud Build in response to a pub/sub message.
I am trying to create a push type subscription for a topic in lower environment to an endpoint which looks like "rpc://name:CloudBuildPushEndpoint:gslb:google.pubsub.v1.cloudbuildpushendpoint....." in prod (and is working fine in prod).
I have not worked too much with Pub/Sub to be very aware of this configuration but whenever I try to create this subscription, I get an error -
I have spent hours searching for something which even looks remotely related to this so that I can have some idea on what could be wrong or in which direction should I proceed.
Appreciate any help.
P.S. I have owner privilege to this project.
答案1
得分: 1
操作失败是因为只有另一个谷歌服务才能创建对此类型的端点的推送。您需要在Cloud Build本身重新创建触发器,而不是尝试手动重新创建Pub/Sub订阅。
英文:
The operation is failing because a push to that type of endpoint can only be created by another Google service. You would have to recreate the trigger in Cloud Build itself rather than trying to recreate the Pub/Sub subscription manually.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论