A Python3 script implementing a /deploy
Slack custom slash command.
This replaces shouting at your teammates ("hey people deployyyyy on production", "WAT?!?!" "LOL")
Also useful to know which branch will be deployed.
boto3
library- tested with Python 3.6.3 (Python 2.x not supported - about time)
This script code has been factored to be deployed on AWS Lambda
-
Configure the AWS Lambda
-
Create the credentials to access credentials (EC2 > AWS Parameter Store)
/slack_deployer/app_token
/slack_deployer/slack_token
-
Create a zip of this package
zip -r slack_announcer.zip slack_announcer
-
upload the zip on AWS Lambda
/deploy help
for a quick syntax help
/deploy <world> <component> <environment> <branch>
full command
This repo can't be simply copied and pasted for your use case, it needs to be adapted. 'Twas just a toy project for a NonStopHacking @Mittelab. But it should get you started.