This bot will notify you of CodePipeline progress (using CloudWatch Events).
We attempt to provide a unified summary, by pulling together multiple events, as well as information obtained by the API into a single message view.
sam build
sam deploy --guided
No configuration is necessary per pipeline. As part of the CF Stack, we subscribe to all CodePipeline and CodeBuild events (using CloudWatch Events).
Required parameters:
SlackBotUserOAuthAccessToken
SlackChannel
(defaults tobuilds
).SlackBotName
(defaults toPipelineBuildBot
).SlackBotIcon
(defaults to:robot_face:
🤖 ).
Your Slack App requires the following Bot Token Scopes:
- channels:history
- channels:manage
- chat:write
- chat:write.customize
- chat:write.public
- groups:history
- links:write
We utilize CloudWatch Events for CodePipline and CodeBuild to get notified of all status changes.
Using the notifications, as well as using the CodePipeline APIs, we are able to present a unified summary of your Pipeline and Build status.
As part of the deployment, we create an IAM policy for the bot lambda function of:
Policies:
- AWSLambdaBasicExecutionRole
- Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- 'codepipeline:Get*'
- 'codepipeline:List*'
Resource: '*'
- Effect: Allow
Action:
- 'codebuild:Get*'
Resource: '*'
So we can retrieve information about all pipelines and builds. See template.yml for more detail.