Skip to content

Instantly share code, notes, and snippets.

View ejschoen's full-sized avatar

Eric Schoen ejschoen

View GitHub Profile
@ejschoen
ejschoen / gist:7d4dcc0a0135ed03eddd23960c60e089
Created October 7, 2019 13:27
Terraform 0.12.9/Google Provider 2.15.0 cluster create failure
This file has been truncated, but you can view the full file.
2019/10/07 08:13:36 [INFO] Terraform version: 0.12.9
2019/10/07 08:13:36 [INFO] Go runtime version: go1.12.9
2019/10/07 08:13:36 [INFO] CLI args: []string{"/home/ejschoen/i2kdevops/docker/terraform/gcp/terraform", "apply"}
2019/10/07 08:13:36 [DEBUG] Attempting to open CLI config file: /home/ejschoen/.terraformrc
2019/10/07 08:13:36 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/10/07 08:13:36 [INFO] CLI command args: []string{"apply"}
2019/10/07 08:13:36 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/10/07 08:13:36 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/10/07 08:13:36 [DEBUG] New state was assigned lineage "8d27e2e9-dc7b-5c67-f86d-9bb81298880a"
2019/10/07 08:13:36 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
@ejschoen
ejschoen / gist:d31e2b01c287d10d5c6a9a2915010de6
Created October 7, 2019 13:15
Terraform 0.12.7/Google Provider 2.15.0 cluster create failure
This file has been truncated, but you can view the full file.
2019/10/07 07:52:02 [INFO] Terraform version: 0.12.7
2019/10/07 07:52:02 [INFO] Go runtime version: go1.12.9
2019/10/07 07:52:02 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2019/10/07 07:52:02 [DEBUG] Attempting to open CLI config file: /home/ejschoen/.terraformrc
2019/10/07 07:52:02 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/10/07 07:52:02 [INFO] CLI command args: []string{"apply"}
2019/10/07 07:52:02 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/10/07 07:52:02 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/10/07 07:52:02 [DEBUG] New state was assigned lineage "89e91aa3-2dfe-5e7c-210e-b986711cfce7"
2019/10/07 07:52:02 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
@ejschoen
ejschoen / gist:63af4a2f13937cad590a21738a6f10fb
Created September 11, 2019 17:12
Terraform GKE cluster Create Failure with Terraform 0.12.7 Google Provider 2.14.0
This file has been truncated, but you can view the full file.
2019/09/11 11:50:08 [INFO] Terraform version: 0.12.7
2019/09/11 11:50:08 [INFO] Go runtime version: go1.12.9
2019/09/11 11:50:08 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2019/09/11 11:50:08 [DEBUG] Attempting to open CLI config file: /home/ejschoen/.terraformrc
2019/09/11 11:50:08 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/09/11 11:50:08 [INFO] CLI command args: []string{"apply"}
2019/09/11 11:50:08 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/09/11 11:50:08 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/09/11 11:50:08 [DEBUG] New state was assigned lineage "f053bef1-6b79-ebfc-7e03-fd6079773e15"
2019/09/11 11:50:08 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
This file has been truncated, but you can view the full file.
2019/08/09 10:30:02 [INFO] Terraform version: 0.12.6
2019/08/09 10:30:02 [INFO] Go runtime version: go1.12.4
2019/08/09 10:30:02 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2019/08/09 10:30:02 [DEBUG] Attempting to open CLI config file: /home/i2kdevops/.terraformrc
2019/08/09 10:30:02 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/08/09 10:30:02 [INFO] CLI command args: []string{"apply"}
2019/08/09 10:30:02 http2: Transport failed to get client conn for checkpoint-api.hashicorp.com:443: http2: no cached connection was available
2019/08/09 10:30:02 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/08/09 10:30:02 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/08/09 10:30:02 [DEBUG] New state was assigned lineage "8eb3214c-7f74-4e61-9241-646353435287"
This file has been truncated, but you can view the full file.
2019/08/04 17:17:51 [INFO] Terraform version: 0.12.0
2019/08/04 17:17:51 [INFO] Go runtime version: go1.12.4
2019/08/04 17:17:51 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2019/08/04 17:17:51 [DEBUG] Attempting to open CLI config file: /home/i2kdevops/.terraformrc
2019/08/04 17:17:51 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/08/04 17:17:51 [INFO] CLI command args: []string{"apply"}
2019/08/04 17:17:51 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/08/04 17:17:51 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/08/04 17:17:51 [DEBUG] New state was assigned lineage "2f09a1ee-93a9-fc69-741d-cd7330c4aaa7"
2019/08/04 17:17:51 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
@ejschoen
ejschoen / gist:f395c1a25b43783ff9f9b2a9fc0dd0c1
Created July 14, 2019 15:02
Terraform trace creating a Google GKE cluster
2019/07/14 09:48:04 [INFO] backend/local: apply calling Apply
2019/07/14 09:48:04 [INFO] terraform: building graph: GraphTypeApply
2019/07/14 09:48:04 [TRACE] Executing graph transform *terraform.ConfigTransformer
2019/07/14 09:48:04 [TRACE] ConfigTransformer: Starting for path:
2019/07/14 09:48:04 [TRACE] ConfigTransformer: Starting for path: kubernetes
2019/07/14 09:48:04 [TRACE] ConfigTransformer: Starting for path: kubernetes-engine
2019/07/14 09:48:04 [TRACE] ConfigTransformer: Starting for path: helm
2019/07/14 09:48:04 [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph:
data.google_client_config.current (prepare state) - *terraform.NodeApplyableResource
data.google_client_openid_userinfo.provider_identity (prepare state) - *terraform.NodeApplyableResource
This file has been truncated, but you can view the full file.
terraform-gke$ TF_LOG=TRACE terraform apply
2019/06/01 08:10:02 [INFO] Terraform version: 0.12.0
2019/06/01 08:10:02 [INFO] Go runtime version: go1.12.4
2019/06/01 08:10:02 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2019/06/01 08:10:02 [DEBUG] Attempting to open CLI config file: /home/devops/.terraformrc
2019/06/01 08:10:02 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/06/01 08:10:02 [INFO] CLI command args: []string{"apply"}
2019/06/01 08:10:02 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/06/01 08:10:02 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
@ejschoen
ejschoen / gist:e9d7c389fea65c621843dc28d57a3342
Created May 21, 2019 12:49
Terraform apply debug output after creating a GKE cluster by recommended usage
TF_LOG=DEBUG terraform apply
2019/05/21 07:47:37 [INFO] Terraform version: 0.11.13
2019/05/21 07:47:37 [INFO] Go runtime version: go1.11.5
2019/05/21 07:47:37 [INFO] CLI args: []string{"/usr/bin/terraform", "apply"}
2019/05/21 07:47:37 [DEBUG] Attempting to open CLI config file: /home/i2kdevops/.terraformrc
2019/05/21 07:47:37 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/05/21 07:47:37 [INFO] CLI command args: []string{"apply"}
2019/05/21 07:47:37 [INFO] command: empty terraform config, returning nil
2019/05/21 07:47:37 [DEBUG] command: no data state file found for backend config
2019/05/21 07:47:37 [DEBUG] New state was assigned lineage "08a7c269-8969-394a-0fea-8434f1d4c365"
@ejschoen
ejschoen / vector-layer-tla.html
Created December 19, 2017 21:57
Highlight a country from its three-letter ISO abbreviation, using OpenLayers v4.
<!DOCTYPE html>
<html>
<head>
<title>Vector Layer</title>
<link rel="stylesheet" href="https://openlayers.org/en/v4.6.4/css/ol.css" type="text/css">
<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
<script src="https://openlayers.org/en/v4.6.4/build/ol.js"></script>
</head>
<body>