-
Slack incoming webhook url
-
AWS CodeCommit repository
-
Python 3 runtime with Virtualenv
-
AWS CDK installed in you client machine
npm install -g cdk
Note: if CDK has never been used in you aws account, you should execute the command
cdk bootstrap
-
Clone the repository and install all the needed dependencies
git clone https://github.com/Think-iT-Labs/CodeCommit-Slackbot.git cd CodeCommit-Slackbot python3 -m venv env source .env/bin/activate python3 -m pip install -r requirements.txt
-
Edit the
cdk.json
file with your CodeCommit repository arn and you slack webhook url{ "app": "python3 app.py", "context": { "codecommit_repo_arn": "arn:aws:codecommit:<region>:<account>:<repository_name>", "slack_webhook_url": "<slack_webhook_url>" } }
-
Run
cdk deploy