Skip to content

guardian/mobile-notifications-content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mobile content notifications lambda

This is a lambda that replaces the Mobile notifications content service. Instead of running as a standalone service on it's own ELB, is a https://aws.amazon.com/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 it's 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](The lambda gets it's 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 here.

Testing on CODE

  1. Go to Composer in CODE and create and publish a new article. (You may need to speak with a team adminstrator to get permissions to do this)
  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.

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

Languages