Pub/Sub
Topics applicatifs (crees par le deployer)
Section intitulée « Topics applicatifs (crees par le deployer) »topics: app: - name: notifications roles: - pubsub.publisherTopics externes (existants dans d’autres projets)
Section intitulée « Topics externes (existants dans d’autres projets) »topics: ext: - name: webhooks project: ${PROJECT_ID:-} realName: ${TPC_EXT_CAPTAINHOOKS:-} roles: - pubsub.publisher| Champ | Type | Requis | Defaut | Description |
|---|---|---|---|---|
name | string | oui | — | Nom logique du topic |
project | string | non | projet courant | Projet GCP |
realName | string | non | {appslug}-{name} | Nom reel dans GCP |
roles | string[] | non | [pubsub.publisher] | Roles IAM du service account |
branch | string | non | branche courante | Override de branche |
provider | string | non | — | (ext) Prefixe du topic externe |
Subscriptions
Section intitulée « Subscriptions »Subscriptions applicatives
Section intitulée « Subscriptions applicatives »subscriptions: app: - name: process-notifications topic: notifications roles: - pubsub.subscriberAvec filtre et push
Section intitulée « Avec filtre et push »subscriptions: app: - name: webhook-handler project: ${PROJECT_ID:-} topic: webhooks filter: 'attributes.eventType="ORDER_CREATED"' retryPolicy: minimumBackoff: 10s maximumBackoff: 600s pushConfig: pushEndpoint: ${WEBHOOK_URL:-} roles: - pubsub.subscriber| Champ | Type | Requis | Defaut | Description |
|---|---|---|---|---|
name | string | oui | — | Nom de la subscription |
topic | string | oui | — | Nom du topic (reference un topic app ou ext) |
roles | string[] | non | [pubsub.editor] | Roles IAM |
filter | string | non | — | Filtre sur les attributs du message |
labels | map(string) | non | {} | Labels GCP sur la subscription |
ackDeadLineSeconds | string | non | — | Delai d’acquittement |
messageRetentionDuration | string | non | — | Duree de retention des messages |
retainAckedMessage | boolean | non | false | Conserver les messages acquittes |
enableMessageOrdering | boolean | non | false | Activer l’ordre des messages |
expirationPolicy.ttl | string | non | — | TTL de la subscription |
retryPolicy.minimumBackoff | string | non | — | Backoff minimum |
retryPolicy.maximumBackoff | string | non | — | Backoff maximum |
deadLetterPolicy.deadLetterTopic | string | non | — | Topic dead letter |
deadLetterPolicy.maxDeliveryAttempts | string | non | — | Max tentatives avant dead letter |
pushConfig.pushEndpoint | string | non | — | URL du push endpoint |
pushConfig.oidcToken.serviceAccountEmail | boolean | non | false | Utiliser le SA pour l’auth OIDC |
pushConfig.oidcToken.audience | string | non | — | Audience OIDC |
Voir aussi : Toutes les proprietes