# 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.

Latest version **1.0.5** (published 2024-01-07) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install cdk-versioned-stack-manager
pnpm add cdk-versioned-stack-manager
yarn add cdk-versioned-stack-manager
bun add cdk-versioned-stack-manager
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2024-01-07 |
| First published | 2023-11-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 18.12.0 <= 20.10.0 |
| Dependencies | 1 |
| Unpacked size | 6.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Derek Kershner |
| Maintainers | dkershner6 |
| Keywords | aws, awscdk, cdk, cloudformation, delete, stack, versioned |

## Links

- npm: https://www.npmjs.com/package/cdk-versioned-stack-manager
- Repository: https://github.com/dkershner6/cdk-versioned-stack-manager
- Homepage: https://github.com/dkershner6/cdk-versioned-stack-manager#readme
- Issues: https://github.com/dkershner6/cdk-versioned-stack-manager/issues
- npm.io page: https://npm.io/package/cdk-versioned-stack-manager

## Dependencies (1)

- [@aws-sdk/client-cloudformation](https://npm.io/package/@aws-sdk/client-cloudformation.md) ^3.485.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2024-01-07
- 1.0.4 — 2024-01-01
- 1.0.1 — 2023-12-23
- 1.0.0 — 2023-11-06
- 0.0.2 — 2023-11-03
- 0.0.1 — 2023-11-03
- 0.0.0 — 2023-11-03

## 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

---
_Source: https://npm.io/package/cdk-versioned-stack-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
