pgermishuys / terraform-cdk

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 NuGet version Maven Central homebrew

Overview

CDK for Terraform apps are written in one of the supported programming languages and can leverage the entire ecosystem of Terraform modules and providers. The application synthesizes Terraform configuration in JSON. Terraform or the CDK for Terraform can then be used to deploy the application.

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, Java, and C#.

Getting Started

Choose a language:

Examples

Typescript

Backends

Python

Java

C#

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

Cloud Development Kit (CDK) Ecosystem

CDK for Terraform apps are structured as a tree of constructs. The language support beyond Typescript is made possible by jsii.

About

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

License:Mozilla Public License 2.0


Languages

Language:TypeScript 94.4%Language:JavaScript 2.5%Language:Shell 1.0%Language:Python 0.5%Language:Batchfile 0.3%Language:Java 0.3%Language:Go 0.3%Language:C# 0.3%Language:Dockerfile 0.3%Language:HCL 0.1%