Skip to content

Lambda that reads from the content api stream and triggers notifications for followable content

Notifications You must be signed in to change notification settings

guardian/mobile-notifications-content

Repository files navigation

mobile content notifications lambda

This is an AWS lambda that runs in the CAPI aws account.

The lambda consumes the CAPI Firehose and sends as notification request for a new pieces of content to the mobile notifications service

Deployment

Deploy the latest build of Mobile::mobile-notifications-content in RiffRaff this redeploys the Lambda in the CAPI account. If you need to redeploy the whole stack you'll need to get access to the CAPI account via janus go to Cloudformation console and rebuild or create the stack using the cloudformation script in this repo.

Cross account resources

The lambda gets its configuration and does some simple content tracking using AWS resources in the mobile account, using cross account roles. These resources are created by this cloudformation.

Testing on CODE

  1. Go to Composer in CODE (You may need to speak with a team adminstrator to get permissions to do this)
    • Publish a new article that has a Series tag applied, or
    • Publish a live blog key event entry
  2. Monitor the logs of the lambda
  3. Observe the logs of the notification api You should see an entry appear to validate that the publication event has been consumed by the lambda (e.g. Notification was sent: ContentNotification(..)).

About

Lambda that reads from the content api stream and triggers notifications for followable content

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published