iPaaS Group

Google Application Integration · Cloud Pub/Sub trigger

Pub/Sub trigger creation fails with VPC Service Controls

Short answer

Creating or publishing a Cloud Pub/Sub trigger fails when the Pub/Sub API is inside a VPC Service Controls perimeter, because the perimeter blocks the communication needed to create the subscription. Temporarily remove the Pub/Sub API from the perimeter, publish, then add it back.

VerifiedLast verified

01Error text

Google Application Integration error
Creation of the required Pub/Sub subscription fails when the integration is published.

02Likely causes

  • The Pub/Sub API is protected by a VPC Service Controls service perimeter.
  • The perimeter blocks the communication between services that is required during trigger setup, so Application Integration cannot create the Pub/Sub subscription when the integration is published.

03How to fix it

  1. In the service perimeter, temporarily remove the Pub/Sub API (pubsub.googleapis.com).
  2. Add and configure the Cloud Pub/Sub trigger in the integration.
  3. Publish the integration.
  4. Add the Pub/Sub API back to the service perimeter.

04Fix it with AI

Copy this prompt into Claude Code, ChatGPT or any AI assistant. It already holds the error, the likely causes and the fix steps, so the assistant starts from what is known instead of guessing.

Prompt
I'm getting this error in Google Cloud Application Integration (Cloud Pub/Sub trigger):

Creation of the required Pub/Sub subscription fails when the integration is published.

What it usually means: Creating or publishing a Cloud Pub/Sub trigger fails when the Pub/Sub API is inside a VPC Service Controls perimeter, because the perimeter blocks the communication needed to create the subscription. Temporarily remove the Pub/Sub API from the perimeter, publish, then add it back.

Likely causes:
- The Pub/Sub API is protected by a VPC Service Controls service perimeter.
- The perimeter blocks the communication between services that is required during trigger setup, so Application Integration cannot create the Pub/Sub subscription when the integration is published.

Fix steps that usually work:
1. In the service perimeter, temporarily remove the Pub/Sub API (pubsub.googleapis.com).
2. Add and configure the Cloud Pub/Sub trigger in the integration.
3. Publish the integration.
4. Add the Pub/Sub API back to the service perimeter.

Help me fix it. If you can read my project files, find where this error comes from. If not, ask me for what you need (the failing step, its input, the connection or config). Check the likely causes one by one, tell me which one it is and why, then give me the exact change to make. Do not change anything in production. Reference: https://ipaaserrors.com/google-application-integration/pubsub-trigger-blocked-by-vpc-service-controls

Nothing is sent anywhere from this page. Read what the assistant suggests before you apply it.

iNotes

Google lists this as an open known issue. The documentation describes the failure but does not quote a literal error message.

05Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.