AWS CDK
The AWS Cloud Development Kit (CDK) is an IaC (Infrastructure-as-Code) tool using general-purpose programming languages such as TypeScript/JavaScript, Python, Java, and .NET to programmatically define your cloud architecture on AWS.
is a thin wrapper script for using the AWS CDK library against local APIs provided by .
Local node_modules
Using cdklocal
locally (e.g. within the node_modules
of your repo instead of globally installed) does not work at the moment for some setups, so make sure you install both aws-cdk
and with the -G
flag.
cdklocal
can be used as a drop-in replacement of where you would otherwise use cdk
when targeting the AWS Cloud.
The following environment variables can be configured:
EDGE_PORT
: Port under which LocalStack edge service is accessible (default: )LOCALSTACK_HOSTNAME
: Target host under which LocalStack edge service is accessible (default:localhost
)
The CDK command line ships with a sample app generator to run a quick test for getting started.
Once the deployment is done, you can inspect the created resources via the command line