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.60.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe568fee8e12ea796bf83c9bcd60fe32b159865bf8dcacf9906397bce29f1c0b |
|
MD5 | 93d9c0ba6c168c9b6f91db71b13c0a53 |
|
BLAKE2b-256 | c3cf4dcfc761f1e8bcbeea815f51a1d43651877b4b8c8001c7ad7b165c2e5b3e |
Close
Hashes for cdk_codepipeline_badge_notification-1.0.60-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d639419c2742294f6ab30eed1928b7f91ae76b6e18b3982f580149a284715f5 |
|
MD5 | c8d2ab2bddfeb5caacc3e840b6459482 |
|
BLAKE2b-256 | 6e84e6420387c952ce3960b3c47494db8e325001480105420cd4668c02607bc5 |