Events (EventBridge)

The service publishes domain events to AWS EventBridge as business actions occur:

  • source: account-service
  • Bus: EVENT_BUS_NAME (default eq-9-sandbox1-eventbus)
  • Gating: publishing is disabled when STAGE=test.
  • Delivery is best-effort / non-blocking: a publish failure is logged and swallowed — the business operation still succeeds.

Envelope shape

Every event carries a type discriminator (e.g. accountservice/account/create) plus a small set of identifiers — always the instanceId and the relevant entity id (accountId, teamId, contractId, costCentreId, budgetId, paymentId, transactionId, etc.) along with key business fields such as name and status.

Published event types (36)

Domain Event type values Trigger
Account accountservice/account/create, /update, /delete Account CRUD
Account type accountservice/accounttype/create, /update, /delete Account-type CRUD
Account user accountservice/accountuser/create, /update, /delete Account-user link CRUD
Address accountservice/address/create, /update, /delete Address CRUD
Team accountservice/team/create, /update, /delete Team CRUD
Cost centre accountservice/costcentre/create, /update, /delete Cost-centre CRUD
Budget accountservice/budget/create, /update, /delete Budget CRUD (embedded in cost centre)
Budget transaction accountservice/budgettransaction/create DEBIT/CREDIT posted
Contract accountservice/contract/create, /update, /delete Contract CRUD
Document accountservice/document/create, /delete Contract-document changes
Payment accountservice/payment/create, /update, /delete Payment-method CRUD
Payment term accountservice/paymentterm/create, /update, /delete Payment-term CRUD
Attribute accountservice/attribute/create, /patch, /delete Attribute changes

Consumed events: none. This service is a publisher only — there is no in-repo EventBridge consumer/handler. (Cross-service reads happen synchronously via the user, foundation, notification, and marketplace adapters/integrations, not via events.)

Revision History
2026-08-05 | AN – Page created and uploaded the contents