Skip to content

A Python3 script implementing a Slack custom slash command

Notifications You must be signed in to change notification settings

apiraino/slack-deploy-announcer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Slack deploy announcer

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.

Requirements

  • boto3 library
  • tested with Python 3.6.3 (Python 2.x not supported - about time)

Install

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

Slack command usage

/deploy help for a quick syntax help

/deploy <world> <component> <environment> <branch> full command

Notes

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.

References

About

A Python3 script implementing a Slack custom slash command

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages