Skip to main content

cdk-codepipeline-badge-notification

Project description

NPM version PyPI version Release

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

# 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

cdk-codepipeline-badge-notification-0.2.63.tar.gz (49.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file cdk-codepipeline-badge-notification-0.2.63.tar.gz.

File metadata

  • Download URL: cdk-codepipeline-badge-notification-0.2.63.tar.gz
  • Upload date:
  • Size: 49.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for cdk-codepipeline-badge-notification-0.2.63.tar.gz
Algorithm Hash digest
SHA256 e29867ba1ee625bb6563ce3bf0ee659f1287f0d4d659e44a5473fd0806c24e97
MD5 5ddf9718a9a327263e085f7a414ee2c3
BLAKE2b-256 af56a2b6807bb8a0109b0a3fc146a3ca545bb6ecc1c2143c678c2cb1af41018b

See more details on using hashes here.

File details

Details for the file cdk_codepipeline_badge_notification-0.2.63-py3-none-any.whl.

File metadata

  • Download URL: cdk_codepipeline_badge_notification-0.2.63-py3-none-any.whl
  • Upload date:
  • Size: 48.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for cdk_codepipeline_badge_notification-0.2.63-py3-none-any.whl
Algorithm Hash digest
SHA256 6cda0eb90c4d24c082e97d2d7a0ad4ca3b8999f668be10aafcabd3b3e5277ec0
MD5 355b8ef6bbd2fa1f9cbd95e517f28cab
BLAKE2b-256 a26cde631f91660964d8943caeabd56d4427f5eeb78df2a1fa9e2c3ab3a7afe4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page