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 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",
        "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 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

This version

0.2.9

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.9.tar.gz (49.5 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.9.tar.gz.

File metadata

  • Download URL: cdk-codepipeline-badge-notification-0.2.9.tar.gz
  • Upload date:
  • Size: 49.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.10

File hashes

Hashes for cdk-codepipeline-badge-notification-0.2.9.tar.gz
Algorithm Hash digest
SHA256 6ec4d8e9fa46a44ae53b5e4fc227cd2abf0e1aaa5840eae225634bc2b0f2ff10
MD5 5883dd72c35c4b92d5d956f64dbb0893
BLAKE2b-256 e1a47264941e06c994b97b767cddec8fcc4ae74f2689faadea0c03ecc0bab7e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cdk_codepipeline_badge_notification-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 48.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.10

File hashes

Hashes for cdk_codepipeline_badge_notification-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 15adb1eef1ceffe1453a4e63ebf750b748d2fe34b2d8a35a92631d9020f5716d
MD5 5651a6ca6bc723c79e3e4bdbaf1bba3c
BLAKE2b-256 cba64bfa98ed766057bc66b9fca56b61e2afb5cc5e7904f601bb18a88940ae76

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