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
- Telegram
Usage
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from cdk_pipeline_badge_notification import CodePipelineBadgeNotification
import aws_cdk.core as cdk
import aws_cdk.aws_codepipeline as code_pipeline
app = cdk.App()
env = {
"region": process.env.CDK_DEFAULT_REGION,
"account": process.env.CDK_DEFAULT_ACCOUNT
}
stack = cdk.Stack(app, "codepipeline-badge-notification", env=env)
pipeline = code_pipeline.Pipeline(stack, "TestPipeline",
pipeline_name="testCodePipeline",
cross_account_keys=False
)
CodePipelineBadgeNotification(stack, "CodePipelineBadgeNotification",
pipeline_arn=pipeline.pipeline_arn,
git_hub_token_from_secrets_manager={
"secrets_manager_arn": "arn:aws:secretsmanager:ap-northeast-1:111111111111:secret:codepipeline/lambda/github-token-YWWmII",
"secret_key": "codepipeline/lambda/github-token"
},
notification={
"stage_name": "production",
"ssm_slack_web_hook_url": "/chat/google/slack",
"ssm_google_chat_web_hook_url": "/chat/google/webhook",
"ssm_telegram_web_hook_url": "/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
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
CodePipelineBadgeNotification(stack, "CodePipelineBadgeNotification",
pipeline_arn=pipeline.pipeline_arn
)
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-0.2.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90b8a7f29adecc2c67d3c1d4e6656ba3e3316b7eef7b1a12b3ac003a0802c76d |
|
MD5 | cd1078612cae684de67f1b27ef36da3f |
|
BLAKE2b-256 | da804dd7c551d49fad6b0e2a3e25281163f31cd549c607488ca661b8718b17ae |
Close
Hashes for cdk_codepipeline_badge_notification-0.2.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b17807d3d90524fb3439fd947fbd78503c62f2cfd5d6ef8168cbff559814c8b4 |
|
MD5 | bf6343e9ce521f4b7a28a2cc4ce7dc81 |
|
BLAKE2b-256 | 6656dee97d36393a7cb21ceb2a267dbd6d558868ad5240f13211e89dd8fd9697 |