Skip to content

Instantly share code, notes, and snippets.

View icornett's full-sized avatar

Ian Cornett icornett

  • Slalom Build
  • Seattle Metro, Washington, USA
  • 22:05 (UTC -08:00)
View GitHub Profile
@icornett
icornett / debug.log
Created August 6, 2019 19:58
Docker v18.03 Terraform Provider Issue
2019/08/06 19:55:17 [INFO] Terraform version: 0.12.6
2019/08/06 19:55:17 [INFO] Go runtime version: go1.12.4
2019/08/06 19:55:17 [INFO] CLI args: []string{"/usr/bin/terraform", "apply", "-auto-approve"}
2019/08/06 19:55:17 [DEBUG] Attempting to open CLI config file: /home/ian/.terraformrc
2019/08/06 19:55:17 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/08/06 19:55:17 [INFO] CLI command args: []string{"apply", "-auto-approve"}
2019/08/06 19:55:17 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/08/06 19:55:17 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/08/06 19:55:17 [DEBUG] New state was assigned lineage "627b2553-d936-8d64-7022-e314795167e0"
2019/08/06 19:55:17 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
@icornett
icornett / gist:116484eac50e34748aa1be4049b5b5cb
Created May 14, 2019 18:21
Terraform Debug: azurerm_availability_set.availability_set: diffs didn't match during apply
Terraform Version: 0.11.11
Resource ID: azurerm_availability_set.availability_set
Mismatch reason: attribute mismatch: tags.ARP Classification
Diff One (usually from plan): *terraform.InstanceDiff{mu:sync.Mutex{state:0, sema:0x0}, Attributes:map[string]*terraform.ResourceAttrDiff{"tags.BISO":*terraform.ResourceAttrDiff{Old:"Andy Kim", New:"Andy Kim", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tags.Product Owner":*terraform.ResourceAttrDiff{Old:"Cloud Engineering", New:"Cloud Engineering", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tags.BrIT Number":*terraform.ResourceAttrDiff{Old:"TBC", New:"TBC", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tags.DCIO":*terraform.ResourceAttrDiff{Old:"AFI", New:"AFI", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensi
@icornett
icornett / debug.log
Created March 1, 2018 19:54
Terraform Cloudstack Firewall Failure
2018/03/01 11:14:25 [INFO] Terraform version: 0.11.3 3802b14260603f90c7a1faf55994dcc8933e2069
2018/03/01 11:14:25 [INFO] Go runtime version: go1.9.1
2018/03/01 11:14:25 [INFO] CLI args: []string{"/usr/bin/terraform", "apply", "-auto-approve"}
2018/03/01 11:14:25 [DEBUG] Attempting to open CLI config file: /home/ian/.terraformrc
2018/03/01 11:14:25 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/03/01 11:14:25 [INFO] CLI command args: []string{"apply", "-auto-approve"}
2018/03/01 11:14:25 [INFO] command: empty terraform config, returning nil
2018/03/01 11:14:25 [DEBUG] command: no data state file found for backend config
2018/03/01 11:14:25 [DEBUG] New state was assigned lineage "d86aad1b-52d4-44d8-96ec-0247e7cace02"
2018/03/01 11:14:25 [INFO] command: backend initialized: <nil>
@icornett
icornett / gist:2873038776bcf9be8211f4047e587e8c
Created December 19, 2017 00:37
aws_s3_bucket encryption failing
2017/12/18 16:35:48 [INFO] Terraform version: 0.11.1 a42fdb08a43c7fabb8898fe8c286b793bbaa4835+CHANGES
2017/12/18 16:35:48 [INFO] Go runtime version: go1.9
2017/12/18 16:35:48 [INFO] CLI args: []string{"/home/ian/terraform", "plan"}
2017/12/18 16:35:48 [DEBUG] Attempting to open CLI config file: /home/ian/.terraformrc
2017/12/18 16:35:48 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/12/18 16:35:48 [INFO] CLI command args: []string{"plan"}
2017/12/18 16:35:48 [INFO] command: backend <nil> is not enhanced, wrapping in local
2017/12/18 16:35:48 [INFO] backend/local: starting Plan operation
2017/12/18 16:35:48 [INFO] terraform: building graph: GraphTypeInput
2017/12/18 16:35:48 [DEBUG] Attaching resource state to "module.remoteState.aws_s3_bucket.sample-state-bucket": &terraform.ResourceState{Type:"aws_s3_bucket", Dependencies:[]string{}, Primary:(*terraform.InstanceState)(0xc420482460), Deposed:[]*terraform.InstanceState{}, Provider:"provider.aws", mu:sync.Mutex{state:0, sema:0x0}}
@icornett
icornett / crash.log
Created December 12, 2017 21:52
Terraform Crash due to multiple subnets returned
2017/12/12 10:56:42 [INFO] Terraform version: 0.11.1 a42fdb08a43c7fabb8898fe8c286b793bbaa4835+CHANGES
2017/12/12 10:56:42 [INFO] Go runtime version: go1.9
2017/12/12 10:56:42 [INFO] CLI args: []string{"/home/ian/terraform/terraform", "plan"}
2017/12/12 10:56:42 [DEBUG] Attempting to open CLI config file: /home/ian/.terraformrc
2017/12/12 10:56:42 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/12/12 10:56:42 [INFO] CLI command args: []string{"plan"}
2017/12/12 10:56:42 [TRACE] module source: "../modules/vpc"
2017/12/12 10:56:42 [TRACE] Preserving existing state lineage "9f5fb7ec-a4ca-4b3a-82e4-af6084ae70ba"
2017/12/12 10:56:42 [TRACE] Preserving existing state lineage "9f5fb7ec-a4ca-4b3a-82e4-af6084ae70ba"
2017/12/12 10:56:42 [INFO] Building AWS region structure