npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@cre8ivelogix/wa-cdk-lite

v2.66.11

Published

Well Architected CDK Constructs - Lite

Downloads

19

Readme

Well Architected CDK Lite

This package contains the Well Architected S3 Bucket - WABucket construct.
WABucket constructs extend the Bucket construct provided by AWS CDK and configures them to satisfy the Well Architected pillars, like security, reliability, performance, cost-effectiveness and operational-excellence. If you would like to use premium version which offers 50+ Well Architected constructs for most commonly used usecases please email [email protected]

Create a CDK project

To try out Well Architected CDK Lite by itself you can create a new CDK project by running the following commands

cdk init app --language typescript

This will create a bare bone CDK project.

Adding WA-CDK Lite dependency

Open CDK project in your favorite IDE, goto package.json file and add the WA-CDK-Lite dependency

{
   "dependencies": {
      "@cre8ivelogix/wa-cdk-lite": "CURRENT_VERSION"
   }
}

Install Dependencies

Once package.json file is updated, you can install the dependencies by running the following commands

npm install

Using Well Architected CDK constructs

Now that you have all the constructs available from Well Architected CDK Lite, use them just like any other class in typescript.

For example in the following code snippet we are using WaBucket from AWS-CDK-Lite package

import {WaBucket} from "./wa-bucket";

new WaBucket(this, "MyBucket", {})

The Bucket created using WaBucket by default satisfies various security and compliance requirements, checkout WaBucket class documentation for details.

Building Java/.Net/Python/Javascript Distribution

docker run -it --rm --entrypoint sh -v $(pwd)/wa-cdk-lite:/wa-cdk-lite jsii/superchain:1-buster-slim-node16

or you can run the script docker-package.sh, when docker prompt is shown,

cd wa-cdk-lite
npm run package

This will cross compile the typescript construct to supported languages.

Well Architected CDK Version Updates

The version of all CDK packages are fixed to the same version. If an upgrade is desired, please make sure that all CDK packages are upgraded to the same version at the same time. Different versions of CDK mixed in the project may cause type incompatibilities.

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • npm run build-test builds and runs unit tests
  • npm run doc-gen generate documentation
  • npm run pretty runs prettier on source code