Skip to content

Instantly share code, notes, and snippets.

View dannietjoh's full-sized avatar
🎮
Focusing

Daniel Binkhuysen dannietjoh

🎮
Focusing
View GitHub Profile
### Keybase proof
I hereby claim:
* I am dannietjoh on github.
* I am dbinkhuysen (https://keybase.io/dbinkhuysen) on keybase.
* I have a public key ASABwnFMvCQD-66wUdVL9KgPJdfJ4ngYaFmneaM48xYWBgo
To claim this, I am signing this object:
@dannietjoh
dannietjoh / main.go
Last active September 27, 2022 04:52
buntdb example
package main
import (
"fmt"
"log"
"github.com/tidwall/buntdb"
)
var dbFile = "data.db"
package main
import (
"fmt"
"github.com/veandco/go-sdl2/sdl"
)
const winWith, winHight int = 800, 600
Switched to environment test-centos-7.3!
2017/04/13 18:35:08 [INFO] Terraform version: 0.9.3 1601af7a076fd03fe940455db7fd01dfa747c795
2017/04/13 18:35:08 [INFO] Go runtime version: go1.8
2017/04/13 18:35:08 [INFO] CLI args: []string{"/opt/terraform/terraform_0.9.3/terraform", "apply", "-backup=-", "-var-file=vsphere-vm/variables/_commons.tfvars", "-var-file=vsphere-vm/variables/test-centos-7.3.tfvars", "-var", "region=lan", "-var", "os=centos", "-var", "os_version=7.3", "-var", "hostname=test", "vsphere-vm"}
2017/04/13 18:35:08 [DEBUG] Detected home directory from env var: /home/daan
2017/04/13 18:35:08 [DEBUG] Detected home directory from env var: /home/daan
2017/04/13 18:35:08 [DEBUG] Attempting to open CLI config file: /home/daan/.terraformrc
2017/04/13 18:35:08 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/04/13 18:35:08 [DEBUG] Detected home directory from env var: /home/daan
2017/04/13 18:35:08 [INFO] CLI command args: []string{"apply", "-backup=-", "-var-file=vsphere-vm/variables/_
.PHONY: help check-aws_account check-region check-tenant check-env check-setup all setup plan refresh apply destroy
SHELL := $(SHELL) -e
export AWS_PROFILE=$(aws_account)
export AWS_DEFAULT_REGION=$(region)
TF_BUCKET = "somebucketname"-$(aws_account)
TF_BUCKET_REGION = "whateverregion"
variable "aws_account" { default = "" }
variable "aws_region" { default = "" }
variable "aws_access_key" { default = "" }
variable "aws_secret_key" { default = "" }
variable "development_l1" { default = "" }
variable "development_l2" { default = "" }
variable "operations_l1" { default = "" }
variable "operations_l2" { default = "" }
# setup AWS provider