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. 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. 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.39.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9de414fc8446fd74af274ccc400159dac9631be95520e63339a214a0b0906cd1 |
|
MD5 | 3e378b3e24c42fcb4202efa6c889a8a9 |
|
BLAKE2b-256 | 72684d48db5e6447e958ef8c79948af9a0f2ec24b2692102e02774a1ee62e3f8 |
Close
Hashes for cdk_codepipeline_badge_notification-0.2.39-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fb65c6bba35aea9861bd9f14c3d9bfb48998e2c870fe95760866b85f45fd05c |
|
MD5 | ab232518c710ae9645cce8aae6bbc2ac |
|
BLAKE2b-256 | 1fc4101d6cdfb0cf7bbecdc2d6a5c9ab0f1801a13b83acb3eda9bf6daed9cbb7 |