Skip to content

Instantly share code, notes, and snippets.

View deitch's full-sized avatar

Avi Deitcher deitch

View GitHub Profile
$ TF_LOG=TRACE tf init .
2019/04/09 21:26:49 [INFO] Terraform version: 0.11.13
2019/04/09 21:26:49 [INFO] Go runtime version: go1.12
2019/04/09 21:26:49 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.13/bin/terraform", "init", "."}
2019/04/09 21:26:49 [DEBUG] Attempting to open CLI config file: /Users/adeitcher/.terraformrc
2019/04/09 21:26:49 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/04/09 21:26:49 [INFO] CLI command args: []string{"init", "."}
2019/04/09 21:26:49 [DEBUG] command: loading backend config file: /tmp/backend-test
Initializing the backend...
@deitch
deitch / main.go
Last active April 23, 2019 07:40
package main
import (
"fmt"
"os"
"github.com/packethost/packngo"
)
func main() {
apiKey := os.Getenv("PACKET_API_KEY")