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
Metadata
Release files for cdk-versioned-stack-manager 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cdk-versioned-stack-manager-1.0.5.tar.gz | 902.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cdk_versioned_stack_manager-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.8 MB
Release files / cdk-versioned-stack-manager-1.0.5.tar.gz
| Download URL | cdk-versioned-stack-manager-1.0.5.tar.gz |
|---|---|
| Size | 902.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b234084f2639a5dbd7e41dbb89b5db12118716b3937b06c00adbb454bea71ca3
|
|
BLAKE2b-256 checksum How to use checksums |
6b0cdf7d361a67b3b857582465d71e3105d8adac1f200f21b9d8149930e34ee6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Release files / cdk_versioned_stack_manager-1.0.5-py3-none-any.whl
| Download URL | cdk_versioned_stack_manager-1.0.5-py3-none-any.whl |
|---|---|
| Size | 900.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ff09d00af276399406d66246dce5fb36f2d2c4fed075ac782f50007b635b387
|
|
BLAKE2b-256 checksum How to use checksums |
f88359dcbcf9b29f3f7537c18f483019555e911d13e38c29214ef06aed415b36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|