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.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ded1c9d809fe23e0ca6e9eb990cae013366c4701c8439e54d695c432f16026f |
|
MD5 | 241dcc14e19f34c540c4c415cd157ef5 |
|
BLAKE2b-256 | 55b66e7f5e1937723d5fdfaa70e4bed1f256b7dbf01e947f6ecf4e0274839df9 |
Close
Hashes for cdk_codepipeline_badge_notification-1.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7627c64ac29e5af3ac61bd9a0c5df727c3bc2885db0b5d437bf83e55435a487 |
|
MD5 | 71ecb5efb0f01d3db673232c7226e1f6 |
|
BLAKE2b-256 | 4abd82df7830a4ef6d056b34fa623da5d2f33eddbe0d5e7ef197f972b4264b75 |