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.45.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01371ab7fa44c5c9d8b27b0051d9ed40bfa0083b983f9726f5c04905ab14baa7 |
|
MD5 | b3aa9aa06eba2dbe791ecd2422862551 |
|
BLAKE2b-256 | d8448a1006766c484bab16933f174aae2b07f566ad71c4bad06bedf2d83c4d8f |
Close
Hashes for cdk_codepipeline_badge_notification-0.1.45-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38dbece8ace3eeed05f1254efae2a6880fa4cc1d5252f8a73e03e64d711c1c59 |
|
MD5 | 136fed8d73b60f807ace38d6487f6975 |
|
BLAKE2b-256 | 166b1df9f6a43375bb01a87abb770b230d6f78a0eb17a2d79d27eefb6eb34d88 |