Google Application Integration · Cloud Pub/Sub trigger
Pub/Sub trigger creation fails with VPC Service Controls
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
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
- In the service perimeter, temporarily remove the Pub/Sub API (pubsub.googleapis.com).
- Add and configure the Cloud Pub/Sub trigger in the integration.
- Publish the integration.
- 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.
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-controlsNothing 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
→Related errors
- Subscription does not existThis Application Integration error appears after uploading an integration JSON file that contains Connector Event triggers, which puts the event subscription in an Error state. Go to the uploaded integration and click the Connector Event trigger that shows the error.
- Failed to publish integration. Error: Duplicate Trigger IdThis Application Integration publish error means two or more Connector Event triggers in the same integration use the same connection and event subscription type. Delete the duplicate Connector Event triggers.
- PERMISSION_DENIED (403)PERMISSION_DENIED in Application Integration is an HTTP 403 that means the client does not have sufficient permission. Check the OAuth token scopes, the permissions granted to the client, and that the API is enabled.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.