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 from non-compiling source. May contain errors.
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 from non-compiling source. May contain errors.
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.52.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25cb7026d14efe3db84e74f1725a261c12a4caf7df37c2ba3bddee24c8ee18e1 |
|
MD5 | 2bd25689e584b3dfcd6eb77d9e11eb48 |
|
BLAKE2b-256 | 625f1e72fcbeeaa79b50eb59c0cb117466b3116b30a371bd1dcabd69e3c37dba |
Close
Hashes for cdk_codepipeline_badge_notification-0.2.52-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e39ff053ca5be1838b407253dd13e2b4667e0d2c3a5f3eaff45f4d4fb3a189d |
|
MD5 | b4fe5af02acb89804bc3e42e06ddaf7e |
|
BLAKE2b-256 | 2a829cbad909cf7fede82d1271bba16feda0f49a4b5de65472301e90d2c23e2d |