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.58.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9632367498dbf389e0d34712c8ab77789e3a7377fb10a4208c072dd28e11c5eb |
|
MD5 | 2c53e60150b7a53301203e1ef735b057 |
|
BLAKE2b-256 | b8a55733bbf5e8b8d81159b2abf0e9676cbeaa13f5a2e5a1fe56ed59a1e37610 |
Close
Hashes for cdk_codepipeline_badge_notification-1.0.58-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 231bd1b73790f2ff6d1ea3fb328f8d4f75db9dfcaf633e720abce7b39d477a6d |
|
MD5 | 891e30792ef703326d4eb587f37cb414 |
|
BLAKE2b-256 | 85b077110d46d48dc11a9265ff9bb0f8c864a81d89b455fbbb834e31eca5ac75 |