@phila/cdk-dummy-test
v0.0.13
Published
Dummy library for testing the monorepo configuration
Downloads
100
Keywords
Readme
DummyTest CDK Construct Library
Dummy library for testing the monorepo configuration
Overview
This CDK construct library provides a reusable AWS infrastructure component. It creates an S3 bucket with versioning enabled and proper lifecycle management.
Installation
npm install @phila/cdk-dummy-testUsage
import { App, Stack } from "aws-cdk-lib";
import { DummyTestConstruct } from "@phila/cdk-dummy-test";
const app = new App();
const stack = new Stack(app, "MyStack", {
env: {
account: "123456789012",
region: "us-east-1",
},
});
const dummyTestConstruct = new DummyTestConstruct(stack, "DummyTestConstruct");
// Access the created S3 bucket
console.log(dummyTestConstruct.bucket.bucketName);Features
- S3 Bucket: Creates a versioned S3 bucket
- Lifecycle Management: Automatic cleanup of objects
- CDK Outputs: Exposes bucket name as CloudFormation output
Development
Prerequisites
- Node.js 22+
- pnpm
- AWS CDK CLI
Commands
pnpm run build- Build the librarypnpm run watch- Build in watch modepnpm run test- Run testspnpm run lint- Lint codepnpm run format- Format code
