https://github.com/pmuens/serverless-dynamodb-streams
Serverless service to showcase DynamoDB stream support
https://github.com/pmuens/serverless-dynamodb-streams
Last synced: 6 months ago
JSON representation
Serverless service to showcase DynamoDB stream support
- Host: GitHub
- URL: https://github.com/pmuens/serverless-dynamodb-streams
- Owner: pmuens
- Created: 2016-10-11T17:11:41.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-11T22:11:28.000Z (almost 9 years ago)
- Last Synced: 2025-04-24T03:13:03.522Z (6 months ago)
- Language: JavaScript
- Homepage: http://serverless.com
- Size: 8.79 KB
- Stars: 27
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless DynamoDB streams
Serverless service to showcase DynamoDB stream support.
## Installation
Make sure that you use Serverless v1.
1. Run `serverless install --url https://github.com/pmuens/serverless-dynamodb-streams` to install the service in your current working directory
2. Next up cd into the service with `cd serverless-dynamodb-streams`
3. Run `npm install`
4. Create a new DynamoDB table called `users` with a primary partition key called `id` and enable stream support for this table
5. Update the stream ARN property in the `serverless.yml` file with the stream ARN of your `users` table
6. Deploy with `serverless deploy`## How to use
1. Run `serverless invoke --function updateProfile --path event.json` to simulate a profile update process
2. Run `serverless logs --function logger` to see the which data has changed in the `users` table## AWS services used
- Lambda
- DynamoDB