Get DynamoDB items from AWS Lambda function

Recently I was using DynamoDB with AWS Lambda functions and in this post I would like to share with you few recipes for querying DynamoDB tables from AWS Lambda Node.js function.

In this short post I’ll show you how to get single item and all the items from the database. Former uses query function and the latter will use scan function.

Continue reading Get DynamoDB items from AWS Lambda function

Send FCM push notifications with AWS Lambda function

Push notifications are back here again. In this case I’m going to send it from the clouds.

In this simple example I’ll use AWS Lambda function with API Gateway integration and Firebase Cloud Messaging service in order to send push notifications to the topic subscribers.

Continue reading Send FCM push notifications with AWS Lambda function

Send test FCM push notification with Amazon SNS

If you’d like to test your Firebase push notifications service or you’re considering to use another push notifications service provider you should take a look at Amazon Simple Notification Service.  You can use Amazon SNS for sending example push notifications via Firebase Cloud Messaging to your mobile application.

In this short example I’ll show you how you can send a message to a specific user of your Android application. So far I couldn’t find a solution to send messages to Firebase topics subscribers but at least you don’t have to deal with OAuth tokens.

Continue reading Send test FCM push notification with Amazon SNS