Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dkershner6/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.
https://github.com/dkershner6/cdk-versioned-stack-manager
Last synced: 29 days ago
JSON representation
A CDK construct for dealing with Versioned Stacks - multiple copies of the same stack that would forever grow over time without...this.
- Host: GitHub
- URL: https://github.com/dkershner6/cdk-versioned-stack-manager
- Owner: dkershner6
- License: apache-2.0
- Created: 2023-11-02T16:20:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-07T02:04:41.000Z (11 months ago)
- Last Synced: 2024-09-21T21:50:35.838Z (about 2 months ago)
- Language: TypeScript
- Size: 1.98 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```typescript
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