Well Architected CDK Constructs - Lite
Project description
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 info@cre8ivelogix.com
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 buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testsnpm run build-testbuilds and runs unit testsnpm run doc-gengenerate documentationnpm run prettyruns prettier on source code
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wa-cdk-lite-2.66.1.tar.gz.
File metadata
- Download URL: wa-cdk-lite-2.66.1.tar.gz
- Upload date:
- Size: 163.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52d1bee6e2ffe935373b9a565a77c67c7f39910d4f46efef5fe886c3587122ba
|
|
| MD5 |
4e931421b4a5532c0ae1b4a913dcc7b9
|
|
| BLAKE2b-256 |
f17fdb9079894535643f787f23788f77b8e8803b7fdaef55f2c3757facc1fe05
|
File details
Details for the file wa_cdk_lite-2.66.1-py3-none-any.whl.
File metadata
- Download URL: wa_cdk_lite-2.66.1-py3-none-any.whl
- Upload date:
- Size: 161.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77cd03717ca6117aeaaec3d657dfea0a311e81501e892ebfacf367f9d0f4bbf1
|
|
| MD5 |
a3fc514640b263d898fa92c019152bc9
|
|
| BLAKE2b-256 |
c42333d01c3171eaf49c1ee63b85c8305d3a727ccfcf6a10e7724eadcc0f4047
|