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
- Slack notification when AWS CodePipeline state change
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",
"slack_web_hook_url": "slack url webhook"
}
)
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.1.44.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae83799b9a0d468862af85928ccc654430a7ed468d53baa537c0e94a80323f25 |
|
MD5 | 2c78c57bf810c443330f6847cddfec55 |
|
BLAKE2b-256 | 7175dcdf836af28c81d53e37652a118546db771c04e48b894d14e0ecb8485062 |
Close
Hashes for cdk_codepipeline_badge_notification-0.1.44-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eafa0ecba52e576dd567514d456bfdfebf9e6349c83c6734e4d905ee6158ca3c |
|
MD5 | 89551a90e583ab6a489545fd333758ab |
|
BLAKE2b-256 | d53bb7c19971db6919bccb722fe47333bbb57ebfa3876681653049db3816bddd |