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
- Host: GitHub
- URL: https://github.com/ansgarm/cdktf-template-typescript-digitalocean-nodejs
- Owner: ansgarm
- Created: 2021-04-27T12:39:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-27T13:27:11.000Z (over 4 years ago)
- Last Synced: 2025-02-14T14:56:48.966Z (8 months ago)
- Topics: cdktf, cdktf-template, typescript
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```