1.0.5 • Published 4 months ago

cdk-versioned-stack-manager v1.0.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

cdk-versioned-stack-manager

A CDK construct for dealing with Versioned Stacks - multiple copies of the same stack that would forever grow over time without this. This prevents hitting AWS quotas, but allows for some replication.

Usage

new cdk.Stack(app, `VersionedStack-${Date.now()}`);

// Inside different stack
new VersionedStackManager(this, 'VersionedStackManager', {
  dryRun: false, // Use this to test the construct, will not actually delete but will log what it would delete
  numberOfStacksToKeep: 5, // Keep this many stacks
  requestId: new Date().toISOString(), // Should change every time you want this to run.
  sortDirection: "DESCENDING", // Optional, defaults to DESCENDING, indicates how your stackNames should be sorted
  stackNamePrefix: 'VersionedStack-' // The pertinent stack names should start with this
});

Use Cases

  • Blue/Green Deployments of entire stacks
1.0.5

4 months ago

1.0.4

4 months ago

1.0.1

5 months ago

1.0.0

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago

0.0.0

6 months ago