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
Built Distribution
File details
Details for the file cdk-versioned-stack-manager-1.0.5.tar.gz
.
File metadata
- Download URL: cdk-versioned-stack-manager-1.0.5.tar.gz
- Upload date:
- Size: 902.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b234084f2639a5dbd7e41dbb89b5db12118716b3937b06c00adbb454bea71ca3 |
|
MD5 | bbe426e28606e5aaaa56e530b9d4bec7 |
|
BLAKE2b-256 | 6b0cdf7d361a67b3b857582465d71e3105d8adac1f200f21b9d8149930e34ee6 |
File details
Details for the file cdk_versioned_stack_manager-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: cdk_versioned_stack_manager-1.0.5-py3-none-any.whl
- Upload date:
- Size: 900.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ff09d00af276399406d66246dce5fb36f2d2c4fed075ac782f50007b635b387 |
|
MD5 | f72888625d9e9e03322f4895a6dea388 |
|
BLAKE2b-256 | f88359dcbcf9b29f3f7537c18f483019555e911d13e38c29214ef06aed415b36 |