dlcs / protagonist

MIT License
7 stars 2 forks source link

Raise notification on customer creation #914

Closed donaldgray closed 2 weeks ago

donaldgray commented 2 weeks ago

When a customer is created, the API will publish to an SNS topic for notifying any downstream subscribers. The message is simply {"name": "new-name", "id": 1234}

CustomerNotificationSender seems superfluous but I've left it in as it follows the same model as raising asset-modified notifications and gives us a hook to enrich the notification should we need to.

Failure to raise this notification will not prevent customer creation or result in a 500 but instead log a warning which will need to be picked up and dealt with.

[!IMPORTANT] Requires a new SNS notification to be setup for API to publish to