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.59.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07c86416da495c6995912032d9a3c7325cddcf6df419e75be79e1602521c835b |
|
MD5 | 0126c29ab8b8dde84bf090ad0a1dabe1 |
|
BLAKE2b-256 | 3ae0919fc163bd1514d11436bdf53273ddc1dd3fb12b53a6b63ffba49faa63de |
Close
Hashes for cdk_codepipeline_badge_notification-0.2.59-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77615770ca696febe020573557de0358e06be88751e4070858fd46533afc0761 |
|
MD5 | 7efa8c0e385a755ac2760f956631b5dd |
|
BLAKE2b-256 | e38bd99f62a14d74cdebfebec5d50b3bf8f38d7e52e9ce2454f847f7671dea63 |