Skip to content

Instantly share code, notes, and snippets.

View josh-padnick's full-sized avatar

Josh Padnick josh-padnick

View GitHub Profile
@josh-padnick
josh-padnick / sample.sh
Created February 3, 2017 21:36
Remove all newlines in a file
awk '$1=$1' ORS='' cert.pem
@josh-padnick
josh-padnick / crash.log
Created January 24, 2017 23:53
Terraform v0.8.4 crash from 1/24/17
This file has been truncated, but you can view the full file.
2017/01/24 16:47:43 [INFO] Terraform version: 0.8.4 a791ff09b29d063dd4b6da0cac04ad3b83c836f5
2017/01/24 16:47:43 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"}
2017/01/24 16:47:43 [DEBUG] Detected home directory from env var: /Users/josh
2017/01/24 16:47:43 [DEBUG] Detected home directory from env var: /Users/josh
2017/01/24 16:47:43 [DEBUG] Attempting to open CLI config file: /Users/josh/.terraformrc
2017/01/24 16:47:43 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/01/24 16:47:43 [DEBUG] Detected home directory from env var: /Users/josh
2017/01/24 16:47:43 [TRACE] Preserving existing state lineage "53585088-64b1-4b42-859f-b04cf3e2e4aa"
2017/01/24 16:47:43 [TRACE] Preserving existing state lineage "53585088-64b1-4b42-859f-b04cf3e2e4aa"
2017/01/24 16:47:43 [TRACE] Graph after step *terraform.ConfigTransformerOld:
@josh-padnick
josh-padnick / output.txt
Created December 25, 2016 21:14
terraform-bug-gist.
josh@ip-10-200-0-2 ~/g/s/g/g/m/e/l/elb (add-alb-logs)> terraform apply
2016/12/25 14:10:07 [INFO] Terraform version: 0.8.2
2016/12/25 14:10:07 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.8.2/bin/terraform", "apply"}
2016/12/25 14:10:07 [DEBUG] Detected home directory from env var: /Users/josh
2016/12/25 14:10:07 [DEBUG] Detected home directory from env var: /Users/josh
2016/12/25 14:10:07 [DEBUG] Attempting to open CLI config file: /Users/josh/.terraformrc
2016/12/25 14:10:07 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/12/25 14:10:07 [DEBUG] Detected home directory from env var: /Users/josh
2016/12/25 14:10:07 [DEBUG] vertex "module.elb_access_logs_bucket": static expanding
.GraphNodeConfigVariable
@josh-padnick
josh-padnick / notes.txt
Last active December 15, 2016 10:58
sample-tf-module layout
SOLR MODULES EXAMPLE
- git repo: infrastructure-live
- dept1
- prod-account
- .terragrunt
- global
- iam-groups
- cloudtrail
- us-west-2
- prod
@josh-padnick
josh-padnick / tf.log
Created September 28, 2016 22:13
Terraform Debug Log for S3 Bucket Issue
2016/09/28 15:12:25 [INFO] Terraform version: 0.7.4
2016/09/28 15:12:25 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.7.4/bin/terraform", "apply"}
2016/09/28 15:12:25 [DEBUG] Detected home directory from env var: /Users/josh
2016/09/28 15:12:25 [DEBUG] Detected home directory from env var: /Users/josh
2016/09/28 15:12:25 [DEBUG] Attempting to open CLI config file: /Users/josh/.terraformrc
2016/09/28 15:12:25 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/09/28 15:12:25 [DEBUG] Detected home directory from env var: /Users/josh
2016/09/28 15:12:25 [DEBUG] Checking resource noop: aws_s3_bucket.cloudtrail
2016/09/28 15:12:25 [DEBUG] No diff, not a noop
2016/09/28 15:12:25 [DEBUG] Starting graph walk: walkInput
@josh-padnick
josh-padnick / crash.log
Last active September 19, 2016 21:21
Terraform crash log from wrong AWS Account ID
2016/09/19 14:19:03 [INFO] Terraform version: 0.7.3 0dd7c657d6d60d2e7392b66ae6f74fb84582cab9
2016/09/19 14:19:03 [INFO] CLI args: []string{"/opt/lib/terraform/terraform", "apply"}
2016/09/19 14:19:03 [DEBUG] Detected home directory from env var: /Users/josh
2016/09/19 14:19:03 [DEBUG] Detected home directory from env var: /Users/josh
2016/09/19 14:19:03 [DEBUG] Attempting to open CLI config file: /Users/josh/.terraformrc
2016/09/19 14:19:03 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/09/19 14:19:03 [DEBUG] Detected home directory from env var: /Users/josh
2016/09/19 14:19:03 [TRACE] Preserving existing state lineage "74da3ceb-07b6-42c7-bc7a-cd2f6919d606"
2016/09/19 14:19:03 [TRACE] Preserving existing state lineage "74da3ceb-07b6-42c7-bc7a-cd2f6919d606"
2016/09/19 14:19:03 [TRACE] Graph after step *terraform.ConfigTransformer:
@josh-padnick
josh-padnick / gist.log
Created September 19, 2016 21:20
Terraform Debug Log -- Wrong AWS Account ID crash
2016/09/19 14:19:03 [INFO] Terraform version: 0.7.3 0dd7c657d6d60d2e7392b66ae6f74fb84582cab9
2016/09/19 14:19:03 [INFO] CLI args: []string{"/opt/lib/terraform/terraform", "apply"}
2016/09/19 14:19:03 [DEBUG] Detected home directory from env var: /Users/josh
2016/09/19 14:19:03 [DEBUG] Detected home directory from env var: /Users/josh
2016/09/19 14:19:03 [DEBUG] Attempting to open CLI config file: /Users/josh/.terraformrc
2016/09/19 14:19:03 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/09/19 14:19:03 [DEBUG] Detected home directory from env var: /Users/josh
2016/09/19 14:19:03 [DEBUG] Checking resource noop: aws_iam_group.admin
2016/09/19 14:19:03 [DEBUG] No diff, not a noop
2016/09/19 14:19:03 [DEBUG] Checking variable noop: var.aws_region
@josh-padnick
josh-padnick / terraform_debug_log.txt
Created September 18, 2016 19:15
Terraform Debug Log
2016/09/18 12:14:29 [INFO] Terraform version: 0.7.3 0dd7c657d6d60d2e7392b66ae6f74fb84582cab9
2016/09/18 12:14:29 [INFO] CLI args: []string{"/opt/lib/terraform/terraform", "apply"}
2016/09/18 12:14:29 [DEBUG] Detected home directory from env var: /Users/josh
2016/09/18 12:14:29 [DEBUG] Detected home directory from env var: /Users/josh
2016/09/18 12:14:29 [DEBUG] Attempting to open CLI config file: /Users/josh/.terraformrc
2016/09/18 12:14:29 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/09/18 12:14:29 [DEBUG] Detected home directory from env var: /Users/josh
2016/09/18 12:14:30 [WARN] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2016/09/18 12:14:30 [DEBUG] DestroyEdgeInclude: Checking: data.template_file.s3_bucket_policy
2016/09/18 12:14:30 [DEBUG] DestroyEdgeInclude: Checking: aws_s3_bucket.webform
@josh-padnick
josh-padnick / go-test.sh
Created April 1, 2016 23:18
go test all but vendor directory
go test $(go list ./... | grep -v /vendor/)

Keybase proof

I hereby claim:

  • I am josh-padnick on github.
  • I am ohmygoshjosh (https://keybase.io/ohmygoshjosh) on keybase.
  • I have a public key ASCbtKTyzn5uSF7Jp_xL6uF1SUxIqlexOpnujOuZPGVMJQo

To claim this, I am signing this object: