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.44.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 036b2ca9a42673feb62f5bfe74a10bd8465d24afbcea36b3053c86c535e07d22 |
|
MD5 | a0ee20653ddb60539bb374587f3849cb |
|
BLAKE2b-256 | 9f8d948a9d07df27a7c9067d01eb3dd5eae3814bf855ffda509cf04980df44ea |
Close
Hashes for cdk_codepipeline_badge_notification-1.0.44-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 684a308648bd1e9b350e9cde8cca323f816a2241fac9a7ff84cc08eab9f65b3e |
|
MD5 | 925301b8964a327e0008e9d2a43f0ea5 |
|
BLAKE2b-256 | 859026a3c5fd6ede4f097949d81cb9b711424379fe5e2c2abe11bc24986df4d0 |