Skip to content

r-takahama/slack-news-notification

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-news-notifications

News notification to slack by AWS Lambda

Install Modules

# If the folder not exists
mkdir lib

# install modules
pip install -r requirements.txt -t ./lib

Test

Unit test (TODO)

python -m unittest tests

Test (notify slack)

# install loacl development module
pip install python-lambda-local

# Set environment variable
export CHANNEL_URL=""

# Test
python-lambda-local -f lambda_handler -t 3 lambda_function.py event.json

Deploy

# Set aws cli profile(option)
export AWS_DEFAULT_PROFILE=[profile-name]

# function-name and slack-channel-url are reqired
deploy.sh -f [fuction-name] \
                 -c [channel-url] \

About

News notification to slack by AWS Lambda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.9%
  • Shell 7.1%