aws-cdk-build-badge
v1.97.21
Published
[](https://badge.fury.io/js/aws-cdk-build-badge) [](https://badge.fury.io/py/aws-cdk-build-badge) [](https://fktijpwdng.execute-api.eu-central-1.amazonaws.com/prod/?projectName=PipelineCustomStageprodTest-Fdei5bm2ulR6&url=true)Default project name
You can use the defaultProjectName in the cdk construct to point the badge to a specific project. That way you don't need to write the projectName parameter in thr url.
new BuildBadge(stack, 'BuildBadge2', { defaultProjectName: 'Build123' });
Example
There are more badges (see ./badges/) but I don't have build in that state atm.
const app = new cdk.App();
const stack = new cdk.Stack(app, 'my-build-badge-demo-stack');
// without exposing the account id in the url when using ?url=true
new BuildBadge(stack, 'BuildBadge');
// with exposing the account id in the url when using ?url=true
new BuildBadge(stack, 'BuildBadge2', { hideAccountID: 'no' });
// partly exposing the account id in the url when using ?url=true
new BuildBadge(stack, 'BuildBadge3', { hideAccountID: 'XX123356' });Thanks To
- The CDK Community cdk-dev.slack.com
- Projen project and the community around it
- https://github.com/btorun/aws-codebuild-badges
- ...
