GCP Pub/Sub messages should have the same payload structure as the Publish API endpoint.
{ "tenant_id": "<TENANT_ID>", "destination_id": "<DESTINATION_ID>", // Optional. Provide a way of routing events to a specific destination "topic": "topic.name", // Topic defined in TOPICS environment variable "eligible_for_retry": true | false, // Should event delivery be retried? Default is true. "metadata": Payload, // can be any JSON payload, "data": Payload // can be any JSON payload}
publishmq: gcp_pubsub: project: "GCP_PUBSUB_PROJECT" # GCP project ID service_account_credentials: "GCP_PUBSUB_SERVICE_ACCOUNT_CREDENTIALS" # Contents of service account credentials JSON file topic: "outpost-publish" # Pub/Sub to read for published events subscription: "outpost-publish-sub" # Pub/Sub subscription for published events