News notification to slack by AWS Lambda
# If the folder not exists
mkdir lib
# install modules
pip install -r requirements.txt -t ./lib
python -m unittest tests
# 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
# 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] \