GCP pub/sub 订阅无法添加推送类型的订阅以触发云构建。

huangapple go评论65阅读模式
英文:

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 - GCP pub/sub 订阅无法添加推送类型的订阅以触发云构建。

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 -
GCP pub/sub 订阅无法添加推送类型的订阅以触发云构建。

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.

huangapple
  • 本文由 发表于 2023年5月22日 22:05:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/76307025.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定