This solution deploys a simple serverless process for getting articles from RSS feeds and posting them to an Amazon Chime chat channel using a web hook.
- Break GetItems Function into State Machine (AWS Step Functions).
- Add Sentiment/Key Phrase Detection.
- Daily Roll-Up of Activity.
- Notification Improvements (New Versions, New Feeds, Etc)
- Better handling of feeds to load when deployed (config file perhaps).
https://docs.aws.amazon.com/chime/latest/ug/webhooks.html
Update functions/load_feeds/app.py
NOTE: You can also directly update the Feeds DynamoDB table after deployment to include additional feeds.
feeds_to_load = [
{
'title': 'AWS Updates',
'url': 'http://aws.amazon.com/new/feed/',
'icon': ':cloud:'
},
{
'title': title, # Feed Title Displayed in Chat
'url': 'url', # URL of RSS Feed (Only RSSV2 Currently Supported)
'icon': ':icon:' # Corresponds to Chime Emoticons
},
# More Feeds Below Here
]
Install the AWS Serverless Application Model CLI - https://aws.amazon.com/serverless/sam/ Configure your local AWS Credentials (aws configure). Create an S3 bucket to store the packaged code and replace S3_BUCKET_TO_STAGE_CODE with the name of your bucket in the comamands below.
sam build --use-container
Replace [YOUR_S3_BUCKET] with the bucket you'll use to hold deployment artifacts.
sam package \
--output-template-file packaged.yaml \
--s3-bucket [YOUR_S3_BUCKET]
Replace [YOUR_WEBHOOK_URL] with the webhook you created for your Chime chat room.
sam deploy \
--template-file packaged.yaml \
--stack-name chime-news-feed \
--capabilities CAPABILITY_IAM \
--parameter-overrides \
ChimeWebHookURL=[YOUR_WEBHOOK_URL]
Update the Feeds DynamoDB table with the RSS feeds you want to monitor. Follow the pattern of the default item, which can be deleted if needed.