Skip to main content

A CDK construct for dealing with Versioned Stacks - multiple copies of the same stack that would forever grow over time without...this.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk-versioned-stack-manager-1.0.5.tar.gz (902.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file cdk-versioned-stack-manager-1.0.5.tar.gz.

File metadata

File hashes

Hashes for cdk-versioned-stack-manager-1.0.5.tar.gz
Algorithm Hash digest
SHA256 b234084f2639a5dbd7e41dbb89b5db12118716b3937b06c00adbb454bea71ca3
MD5 bbe426e28606e5aaaa56e530b9d4bec7
BLAKE2b-256 6b0cdf7d361a67b3b857582465d71e3105d8adac1f200f21b9d8149930e34ee6

See more details on using hashes here.

File details

Details for the file cdk_versioned_stack_manager-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for cdk_versioned_stack_manager-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5ff09d00af276399406d66246dce5fb36f2d2c4fed075ac782f50007b635b387
MD5 f72888625d9e9e03322f4895a6dea388
BLAKE2b-256 f88359dcbcf9b29f3f7537c18f483019555e911d13e38c29214ef06aed415b36

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page