Constructs are cloud components that encode configuration detail, boilerplate, and glue logic for using one or multiple AWS services.

AWS Cloud Development Kit (AWS CDK)

The AWS Cloud Development Kit (AWS CDK) is an open source software development framework to model and provision your cloud application resources using familiar programming languages.1

Use the AWS CDK to define your cloud resources in a familiar programming language. The AWS CDK supports TypeScript, JavaScript, and Python. The AWS CDK also provides Developer Preview support for C#/.NET, and Java. 2


CDK Python

Installing the AWS CDK

npm install -g aws-cdk
pip install --upgrade aws-cdk.core

Specifying Your Credentials and Region

AWS Creating Profiles - You must specify your credentials and an AWS Region to use the AWS CDK CLI. The CDK looks for credentials and region in the following order:

  • Using the --profile option to cdk commands.
  • Using environment variables.
  • Using the default profile as set by the AWS Command Line Interface (AWS CLI).

CDK Python Project

CDK Python Project
$ mkdir cdk-project
$ cd cdk-project
$ cdk init app --language python
$ source .env/bin/activate
$ pip install -r requirements.txt

Synthesizing and Deploying

The stacks defined in your AWS CDK app can be deployed individually or together using the commands below. Generally, you should be in your project's main directory when you issue them.3

  • cdk synth: Synthesizes a AWS CloudFormation template from one or more of the stacks in your AWS CDK app.
  • cdk deploy: Deploys the resources defined by one or more of the stacks in your AWS CDK app to AWS.

Last edited by MichaelAlber .
Page last modified on Saturday May 9, 2020 01:56:52 UTC.


Linux Command Line and Shell Scripting Bible Linux Command Line and Shell Scripting Bible - Linux Command Line and Shell Scripting Bible is your essential Linux guide. With detailed instruction and abundant examples, this book teaches you how to bypass the graphical interface and communicate directly with your computer, saving time and expanding capability.

Linux Bible Linux Bible - Linux continues to be an excellent, low-cost alternative to expensive operating systems. Whether you're new to Linux or need a reliable update and reference, this is an excellent resource. Veteran bestselling author Christopher Negus provides a complete tutorial packed with major updates, revisions, and hands-on exercises so that you can confidently start using Linux today.

Learning Python Learning Python - Portable, powerful, and a breeze to use, Python is the popular open source object-oriented programming language used for both standalone programs and scripting applications.

Modern PHP: New Features and Good Practices Modern PHP: New Features and Good Practices - PHP is experiencing a renaissance, though it may be difficult to tell with all of the outdated PHP tutorials online. With this practical guide, you'll learn how PHP has become a full-featured, mature language with object-orientation, namespaces, and a growing collection of reusable component libraries.