0.1.8 • Published 6 months ago

cdk-deployment-constructs v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

CDK Deployment Constructs

NPM version

CDK constructs for safe deployment of code via AWS CodeSuite.

  • Disable/enable CodePipeline transitions based on one or more SSM Change Calendars
  • Bake steps with support for alarms

Installation

https://www.npmjs.com/package/cdk-deployment-constructs

In your package.json:

{
  "dependencies": {
    "cdk-deployment-constructs": "^0.0.0",

    // peer dependencies of cdk-deployment-constructs
    "aws-cdk-lib": "^2.18.0",
    "constructs": "^10.0.5"

    // ...your other dependencies...
  }
}

Features

You can browse the documentation at https://constructs.dev/packages/cdk-deployment-constructs/.

Bake steps

A bake step is an approval step, usually added post deployments, which intentionally slows down the pipeline a fixed amount of time. This "bake time" can help surface issues that only arise some time after deployment, either due to sporadic usage or uptime-related causes (e.g. memory leaks). One or more CloudWatch alarms can be optionally associated with the bake step, in which case the enforcer will reject the approval if any of them goes into alarm during the bake time.

import * as pipelines from 'aws-cdk-lib/pipelines';
import * as dc from 'cdk-deployment-constructs';

declare const pipeline: pipelines.CodePipeline;
declare const helper: dc.CodePipelineHelper;

const wave = pipeline.addWave("Wave1");
wave.addPost(
  helper.newBakeStep("Bake-Wave1", {
    bakeTime: Duration.hours(2),
  })
);

Contributing/Security

See CONTRIBUTING.md for more information.

License

This project is licensed under the MIT License.

0.1.8

6 months ago

0.1.7

6 months ago

0.1.4

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.0

1 year ago

0.1.1

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago