cdk-codepipeline-badge-notification
Project description
CDK-CodePipeline-Badge-Notification
Feature
-
Generate badge when AWS CodePipeline state change
-
Update GitHub commit status when AWS CodePipeline state change
-
Notification for chat bot provider
- Slack
- Google Chat
- Telegram
Usage
import { CodePipelineBadgeNotification } from 'cdk-pipeline-badge-notification';
import * as cdk from '@aws-cdk/core';
import * as codePipeline from '@aws-cdk/aws-codepipeline';
const app = new cdk.App();
const env = {
region: process.env.CDK_DEFAULT_REGION,
account: process.env.CDK_DEFAULT_ACCOUNT,
};
const stack = new cdk.Stack(app, 'codepipeline-badge-notification', { env });
const pipeline = new codePipeline.Pipeline(stack, 'TestPipeline', {
pipelineName: 'testCodePipeline',
crossAccountKeys: false,
});
new CodePipelineBadgeNotification(stack, 'CodePipelineBadgeNotification', {
pipelineArn: pipeline.pipelineArn,
gitHubTokenFromSecretsManager: {
secretsManagerArn:
'arn:aws:secretsmanager:ap-northeast-1:111111111111:secret:codepipeline/lambda/github-token-YWWmII',
secretKey: 'codepipeline/lambda/github-token',
},
notification: {
stageName: 'production',
ssmSlackWebHookUrl: '/chat/google/slack',
ssmGoogleChatWebHookUrl: '/chat/google/webhook',
ssmTelegramWebHookUrl: '/chat/telegram/webhook',
},
});
:warning: telegram webhook url from ssm parameter which the URL is not include
text
query string
gitHubTokenFromSecretsManager and notification is optional
Only badge
new CodePipelineBadgeNotification(stack, 'CodePipelineBadgeNotification', {
pipelineArn: pipeline.pipelineArn,
});
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for cdk-codepipeline-badge-notification-1.0.42.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfefb86ea4be69eb94a7a93249e9211a7a321fa502dd17be28e124e142a4205b |
|
MD5 | dac6f26a90d8756fa6d85f3cc5e3a0b7 |
|
BLAKE2b-256 | a60e88312ebaf86c53bb7128819db173acce3fbad2f8a0e2340a2b1f44f177d6 |
Close
Hashes for cdk_codepipeline_badge_notification-1.0.42-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 876785fc2556ecf72aa0ee6310c3234c889fb5cdaa63bb8b5f3e071b44cdafe1 |
|
MD5 | 9eaee968f695a24d145d82e95c93f2a2 |
|
BLAKE2b-256 | c9a1503534f1764c639360e0a38db475a05c126dd6b01bce1dd2a4937f959806 |