aws-cdk-build-badge
Project description
aws-cdk-build-badge
This an AWS CDK custom construct for get the status of a CodeBuild Project with has CodePipeline as source. That is currently not possible:
How the native badges are working you find in the AWS docs:
After you created the build badge construct you can use the api gateway url to get the badge picture. Additionally you can retrieve the url to to the CodeBuild build with adding ?url=true to the query parameter. See the example.
Example
There are more badges (see ./badges/) but I don't have build in that state atm.
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
app = cdk.App()
stack = cdk.Stack(app, "my-build-badge-demo-stack")
# without exposing the account id in the url when using ?url=true
BuildBadge(stack, "BuildBadge")
# with exposing the account id in the url when using ?url=true
BuildBadge(stack, "BuildBadge2", hide_account_iD="no")
# partly exposing the account id in the url when using ?url=true
BuildBadge(stack, "BuildBadge3", hide_account_iD="XX123356")
Thanks To
- The CDK Community cdk-dev.slack.com
- Projen project and the community around it
- https://github.com/btorun/aws-codebuild-badges
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
aws-cdk-build-badge-0.0.8.tar.gz
(13.5 MB
view hashes)
Built Distribution
Close
Hashes for aws-cdk-build-badge-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f017a3d7cd2ff90c9d32d9f256de05c794afade7fa3e2647a596e88196cc649 |
|
MD5 | 73f52b4f7507dc5054fcc2c3733f0097 |
|
BLAKE2b-256 | d56f292425f84b4061fdadc19053be942b6e957c53c38bebf112fdc33425b2fe |
Close
Hashes for aws_cdk_build_badge-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f992a4ec4d7124fe792ad4af09fde94ef38420bd2c12848911883d6985a5d037 |
|
MD5 | 5e35475fb2308c9e4aaf13c8dbf20a99 |
|
BLAKE2b-256 | 43fcc1615d8a79a477be379c1875b365f8d50499d40d74cb3e5c35074a3e3ee5 |