Skip to content

Commit 85759ff

Browse files
committed
Debugging Terraform - NEW
1 parent 41b696f commit 85759ff

File tree

1 file changed

+26
-0
lines changed
  • Section 2 - Read, Generate, Modify Congiruations

1 file changed

+26
-0
lines changed

‎Section 2 - Read, Generate, Modify Congiruations/debugging.md‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,29 @@
44
export TF_LOG_PATH=/tmp/crash.log
55
export TF_LOG=TRACE
66
```
7+
8+
### Base Code Used (tf-logs.tf)
9+
10+
```sh
11+
resource "local_file" "foo" {
12+
content = "foo!"
13+
filename = "${path.module}/foo.txt"
14+
}
15+
```
16+
17+
### Set ENV Variable in Windows
18+
```sh
19+
set TF_LOG=INFO
20+
set TF_LOG=TRACE
21+
22+
set TF_LOG_PATH=terraform.txt
23+
```
24+
25+
### Set ENV Variable in Linux / macOS
26+
27+
```sh
28+
export TF_LOG=INFO
29+
export TF_LOG=TRACE
30+
31+
export TF_LOG_PATH=terraform.txt
32+
```

0 commit comments

Comments
 (0)