Skip to content

Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform

License

Notifications You must be signed in to change notification settings

bverhoeve/terraform-cdk

 
 

Repository files navigation

CDK for Terraform

This experimental repository contains software which is still being developed and in the alpha testing stage. It is not ready for production use.

CDK (Cloud Development Kit) for Terraform allows developers to use familiar programming languages to define cloud infrastructure and provision it through HashiCorp Terraform.

npm version PyPI version homebrew

Overview

The CDK for Terraform project helps users define infrastructure resources using supported programming languages and generates a Terraform configuration in JSON. Users can then use the Terraform or the CDK for Terraform CLI to deploy the application.

The project uses AWS CDK constructs to define applications.

The CDK for Terraform project includes two packages:

  • cdktf-cli - A CLI that allows users to run commands to initialize, import, and synthesize CDK for Terraform applications.
  • cdktf - A library for defining Terraform resources using programming constructs.

The project currently supports TypeScript, Python, and Java.

Getting Started

Choose a language:

Examples

Typescript

Backends

Python

Java

Documentation

Contributing and Feedback

CDK for Terraform is an early experimental project and the development team would love your feedback to help guide the project.

Building

Clone the project repository

git clone https://github.com/hashicorp/terraform-cdk.git

Download dependencies

cd terraform-cdk/
yarn install

Build the project and packages

yarn build

About

Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 92.5%
  • JavaScript 3.5%
  • Shell 2.5%
  • Python 0.5%
  • Batchfile 0.4%
  • Java 0.3%
  • Dockerfile 0.3%