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.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33f140d12298777ad8fa7dd2275b2c22e97dc106037a4180c4be9007cb26c8f1 |
|
MD5 | 6d94ea725b8e54f508812d000d43599a |
|
BLAKE2b-256 | 28573891d7ef02a0531c6181f67e27803afe86d5cf6c23f72f68f4bcdf8a6696 |
Close
Hashes for cdk_codepipeline_badge_notification-1.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bced06c47f9d6cbb66c549b18aeac3c0117bb7e0452e9219466e50454732d0a7 |
|
MD5 | 9f3a3d77b60ab5fef8c3610e6543714e |
|
BLAKE2b-256 | 67e6ff35b5e0311268319c1d451d086594e4cf2140b02e584156da8515bc98ef |