AWS CodeBuild/CodeDeploy triggers & updates to Slack with a cool Progress Bar!
Project description
awsslack
Basic view of how it would look in Slack (reality is much better with live progress-bar)
my-slack-bot APP 12:02 AM
████████████████████ 100.0%
00:02:12 - [Build: <project-name> BuildStatus=IN_PROGRESS!]
00:02:17 - [Build's Phase: SUBMITTED PhaseStatus=SUCCEEDED]
00:02:18 - [Build's Phase: QUEUED PhaseStatus=SUCCEEDED]
00:02:48 - [Build's Phase: PROVISIONING PhaseStatus=SUCCEEDED]
00:02:53 - [Build's Phase: DOWNLOAD_SOURCE PhaseStatus=SUCCEEDED]
00:03:14 - [Build's Phase: INSTALL PhaseStatus=SUCCEEDED]
00:03:19 - [Build's Phase: PRE_BUILD PhaseStatus=SUCCEEDED]
00:05:00 - [Build's Phase: BUILD PhaseStatus=SUCCEEDED]
00:05:31 - [Build's Phase: POST_BUILD PhaseStatus=SUCCEEDED]
00:05:36 - [Build: <project-name> BuildStatus=SUCCEEDED!] (edited)
Installation
$ pip install awsslack
Usage
Config
Config file path is: ~/.aws/.awsslack-config.yaml
$ awsslack config --auto-generate
See help: awsslack config --help
CodeBuild
Trigger Codebuild project for dev
environment:
$ awsslack codebuild -P <project-name> -E dev
Similarly, for prod
environment:
$ awsslack codebuild -P <project-name> -E prod
See help: awsslack codebuild --help
CodeDeploy
Trigger CodeDeploy project for dev
environment:
$ awsslack codedeploy -P <project-name> -E dev
Similarly, for prod
environment:
$ awsslack codedeploy -P <project-name> -E prod
Note: If --commit
is not provided, will fetch latest Commit ID from --branch
.
See help: awsslack codedeploy --help
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file awsslack-0.1.2.tar.gz
.
File metadata
- Download URL: awsslack-0.1.2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.8.10 Linux/5.15.0-1028-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccaa2442de2c063d08d981355134e3f6c1cd00e1c120e5d2312b0c948c1be249 |
|
MD5 | 56b76c6665de4f615e115ca886b3edb0 |
|
BLAKE2b-256 | 3dc54bf4dfff786ef97c4443eb63b9d382d0ab5b3daf2c521b1752f41a1e2c16 |
File details
Details for the file awsslack-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: awsslack-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.8.10 Linux/5.15.0-1028-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3e827dc92312336d85c0bf371d6bdb128d350e0c32bfc0e6492f5485bc6088 |
|
MD5 | 9c15185cda6d0b2b39610195bd028da0 |
|
BLAKE2b-256 | 55a4b0c356d75c76b18b12ccfbc1fdace0440ebe2ad666f0b61cc12ecf5a66cc |