An experiment to bundle the entire CDK into a single module
Project description
monocdk Experiment
An experiment to bundle all of the CDK into a single module.
:warning: Please don't use this module unless you are interested in providing feedback about this experience.
Usage
Installation
To try out monocdk-experiment
replace all references to CDK Construct
Libraries (most @aws-cdk/*
packages) in your package.json
file with a single
entrey referring to monocdk-experiment
.
You also need to add a reference to the constructs
library, according to the
kind of project you are developing:
- For libraries, model the dependency under
devDependencies
andpeerDependencies
- For apps, model the dependency under
dependencies
only
Use in your code
Classic import
You can use a classic import to get access to each service namespaces:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from monocdk_experiment import core, aws_s3 as s3
app = core.App()
stack = core.Stack(app, "MonoCDK-Stack")
s3.Bucket(stack, "TestBucket")
Barrel import
Alternatively, you can use "barrel" imports:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from monocdk_experiment import App, Stack
from monocdk_experiment.aws_s3 import Bucket
app = App()
stack = Stack(app, "MonoCDK-Stack")
Bucket(stack, "TestBucket")
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
Hashes for monocdk.experiment-1.47.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d83b46bf2099e70d34f6afbd547fb20767f1a76ced3e9125cf6387260954d55 |
|
MD5 | a21e916ead946bc649ad78ad82551eaa |
|
BLAKE2b-256 | 775da861b87ac26880e2face31c9386639ab58e5b271079138a76bff524f2b1c |
Hashes for monocdk.experiment-1.47.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b750645e1334cc4f67990920b90e7d3d4118d8759015be52f24f548bc7041510 |
|
MD5 | 61adc0b7bb6aa038432f817e0dd4bbff |
|
BLAKE2b-256 | 379cee098d44692e33a5c702dab4737d016652a86a2b9b242174d54051034761 |