[![NPM version](https://badge.fury.io/js/cdk-codepipeline-badge-notification.svg)](https://badge.fury.io/js/cdk-codepipeline-badge-notification)
[![PyPI version](https://badge.fury.io/py/cdk-codepipeline-badge-notification.svg)](https://badge.fury.io/py/cdk-codepipeline-badge-notification)
[![Release](https://github.com/kimisme9386/cdk-codepipeline-badge-notification/actions/workflows/release.yml/badge.svg)](https://github.com/kimisme9386/cdk-codepipeline-badge-notification/actions/workflows/release.yml)
# 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
* Telegram
## Usage
```python
# 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
```python
# Example automatically generated. See https://github.com/aws/jsii/issues/826
CodePipelineBadgeNotification(stack, "CodePipelineBadgeNotification",
pipeline_arn=pipeline.pipeline_arn
)
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:cdk-codepipeline-badge-notification-0.2.37.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
cdk-codepipeline-badge-notification-0.2.37.tar.gz (16个子文件)
cdk-codepipeline-badge-notification-0.2.37
MANIFEST.in 23B
PKG-INFO 3KB
pyproject.toml 106B
LICENSE 11KB
src
cdk_codepipeline_badge_notification.egg-info
PKG-INFO 3KB
requires.txt 438B
SOURCES.txt 624B
top_level.txt 36B
dependency_links.txt 1B
cdk_codepipeline_badge_notification
py.typed 1B
_jsii
__init__.py 740B
cdk-codepipeline-badge-notification@0.2.37.jsii.tgz 37KB
__init__.py 13KB
setup.cfg 38B
setup.py 2KB
README.md 2KB
共 16 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功