mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-09 23:10:22 +07:00
34 lines
417 B
Markdown
34 lines
417 B
Markdown
|
# Terraform CDK
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
Compile:
|
||
|
|
||
|
```sh
|
||
|
go build # Builds your go project
|
||
|
```
|
||
|
|
||
|
Synthesize:
|
||
|
|
||
|
```sh
|
||
|
cdktf synth [stack] # Synthesize Terraform resources to cdktf.out/
|
||
|
```
|
||
|
|
||
|
Diff:
|
||
|
|
||
|
```sh
|
||
|
cdktf diff [stack] # Perform a diff (terraform plan) for the given stack
|
||
|
```
|
||
|
|
||
|
Deploy:
|
||
|
|
||
|
```sh
|
||
|
cdktf deploy [stack] # Deploy the given stack
|
||
|
```
|
||
|
|
||
|
Destroy:
|
||
|
|
||
|
```sh
|
||
|
cdktf destroy [stack] # Destroy the given stack
|
||
|
```
|