An open API service indexing awesome lists of open source software.

https://github.com/ansgarm/cdktf-template-typescript-digitalocean-nodejs

CDK for Terraform template setting up a TypeScript example stack for running Node.js on DigitalOcean
https://github.com/ansgarm/cdktf-template-typescript-digitalocean-nodejs

cdktf cdktf-template typescript

Last synced: 6 months ago
JSON representation

CDK for Terraform template setting up a TypeScript example stack for running Node.js on DigitalOcean

Awesome Lists containing this project

README

          

# CDK for Terraform template for Nodejs service on DigitalOcean

This template for the [CDK for Terraform](https://cdk.tf) provisions a small infrastructure on DigitalOcean running a sample Node.js service.
It demos using multiple stacks to provision a staging and a production environment.

## Usage
### Prerequisites
You need to have the [cdktf-cli](https://github.com/hashicorp/terraform-cdk/blob/main/docs/getting-started/typescript.md#prerequisites) and the [Terraform CLI](https://learn.hashicorp.com/tutorials/terraform/install-cli) installed.

### Initalizing a new project
```
cdktf init --template https://github.com/ansgarm/cdktf-template-typescript-digitalocean-nodejs/archive/refs/heads/main.zip
cdktf get # generates provider bindings for digitalocean Terraform provider
cdktf synth # generates Terraform JSON describing the resources
```