https://github.com/raysrashmi/twitter-stream-demo
Stream tweets
https://github.com/raysrashmi/twitter-stream-demo
Last synced: about 1 year ago
JSON representation
Stream tweets
- Host: GitHub
- URL: https://github.com/raysrashmi/twitter-stream-demo
- Owner: raysrashmi
- Created: 2019-04-15T05:21:09.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T21:24:22.000Z (about 4 years ago)
- Last Synced: 2025-02-04T18:24:28.353Z (over 1 year ago)
- Language: Ruby
- Size: 1010 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The app fetch tweets of ruby rails topics and send to kinesis then lambda
function get invokes and save these to database .
The app contains
1. Kinesis stream
2. Lambda Function
3. DynamoDB table
To run try it out
Put twitter api key and credentials in producer/tweets_stream.rb
Then run it normally by `ruby producer/tweets_stream.rb`
To Deploy the app
1. Create bucket ```aws s3 mb s3://tweets-stream```
2. Package your app by running
```
sam package --template-file template.yaml \
--output-template-file packaged-template.yaml \
--s3-bucket tweets-stream
```
3. Deploy app
```
sam deploy --template-file packaged-template.yaml --stack-name tweets-stream --capabilities CAPABILITY_IAM
```
Resources: https://aws.amazon.com/de/blogs/compute/announcing-ruby-support-for-aws-lambda/