Skip to content

Instantly share code, notes, and snippets.

@alephnull
Created October 26, 2020 12:45
Show Gist options
  • Save alephnull/9a0d63903164a7b9187f2b4487c0c32a to your computer and use it in GitHub Desktop.
Save alephnull/9a0d63903164a7b9187f2b4487c0c32a to your computer and use it in GitHub Desktop.
github action secret creation debug log
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create

Terraform will perform the following actions:
 # github_actions_secret.ecr-keyid will be created
 + resource "github_actions_secret" "ecr-keyid" {
+ created_at = (known after apply)
+ id = (known after apply)
+ plaintext_value = (sensitive value)
+ repository = "tyk-analytics"
+ secret_name = "tf_secret"
+ updated_at = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
------------------------------------------------------------------------
This plan was saved to: tf.plan
To perform exactly these actions, run the following command to apply:
terraform apply "tf.plan"
2020/10/26 18:13:35 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2020/10/26 18:13:36 [INFO] Terraform version: 0.13.5
2020/10/26 18:13:36 [INFO] Go runtime version: go1.14.7
2020/10/26 18:13:36 [INFO] CLI args: []string{"/home/alok/.zinit/snippets/terraform/terraform", "apply", "tf.plan"}
2020/10/26 18:13:36 [DEBUG] Attempting to open CLI config file: /home/alok/.terraformrc
2020/10/26 18:13:36 Loading CLI configuration from /home/alok/.terraformrc
2020/10/26 18:13:36 Loading CLI configuration from /home/alok/.terraform.d/credentials.tfrc
2020/10/26 18:13:36 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/10/26 18:13:36 [DEBUG] ignoring non-existing provider search directory /home/alok/.terraform.d/plugins
2020/10/26 18:13:36 [DEBUG] ignoring non-existing provider search directory /home/alok/.local/share/terraform/plugins
2020/10/26 18:13:36 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2020/10/26 18:13:36 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2020/10/26 18:13:36 [DEBUG] ignoring non-existing provider search directory /var/lib/snapd/desktop/terraform/plugins
2020/10/26 18:13:36 [INFO] CLI command args: []string{"apply", "tf.plan"}
2020/10/26 18:13:36 [DEBUG] checking for provisioner in "."
2020/10/26 18:13:36 [DEBUG] checking for provisioner in "/home/alok/.zinit/snippets/terraform"
2020/10/26 18:13:36 [INFO] Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory
2020/10/26 18:13:36 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2020/10/26 18:13:36 [INFO] backend/local: starting Apply operation
2020-10-26T18:13:36.085+0530 [INFO] plugin: configuring client automatic mTLS
2020-10-26T18:13:36.105+0530 [DEBUG] plugin: starting plugin: path=.terraform/plugins/registry.terraform.io/hashicorp/github/3.1.0/linux_amd64/terraform-provider-github_v3.1.0_x4 args=[.terraform/plugins/registry.terraform.io/hashicorp/github/3.1.0/linux_amd64/terraform-provider-github_v3.1.0_x4]
2020-10-26T18:13:36.105+0530 [DEBUG] plugin: plugin started: path=.terraform/plugins/registry.terraform.io/hashicorp/github/3.1.0/linux_amd64/terraform-provider-github_v3.1.0_x4 pid=103376
2020-10-26T18:13:36.105+0530 [DEBUG] plugin: waiting for RPC address: path=.terraform/plugins/registry.terraform.io/hashicorp/github/3.1.0/linux_amd64/terraform-provider-github_v3.1.0_x4
2020-10-26T18:13:36.110+0530 [INFO] plugin.terraform-provider-github_v3.1.0_x4: configuring server automatic mTLS: timestamp=2020-10-26T18:13:36.110+0530
2020-10-26T18:13:36.129+0530 [DEBUG] plugin: using plugin: version=5
2020-10-26T18:13:36.129+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: plugin address: address=/tmp/plugin986578723 network=unix timestamp=2020-10-26T18:13:36.128+0530
2020-10-26T18:13:36.165+0530 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2020-10-26T18:13:36.167+0530 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/github/3.1.0/linux_amd64/terraform-provider-github_v3.1.0_x4 pid=103376
2020-10-26T18:13:36.167+0530 [DEBUG] plugin: plugin exited
2020/10/26 18:13:36 [INFO] backend/local: apply calling Apply
2020/10/26 18:13:36 [INFO] terraform: building graph: GraphTypeApply
2020/10/26 18:13:36 [DEBUG] Resource state not found for node "github_actions_secret.ecr-keyid", instance github_actions_secret.ecr-keyid
2020/10/26 18:13:36 [DEBUG] ProviderTransformer: "github_actions_secret.ecr-keyid (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/github"]
2020/10/26 18:13:36 [DEBUG] ProviderTransformer: "github_actions_secret.ecr-keyid" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/github"]
2020/10/26 18:13:36 [DEBUG] ReferenceTransformer: "github_actions_secret.ecr-keyid (expand)" references: []
2020/10/26 18:13:36 [DEBUG] ReferenceTransformer: "github_actions_secret.ecr-keyid" references: []
2020/10/26 18:13:36 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/github\"]" references: []
2020/10/26 18:13:36 [DEBUG] Starting graph walk: walkApply
2020-10-26T18:13:36.168+0530 [INFO] plugin: configuring client automatic mTLS
2020-10-26T18:13:36.188+0530 [DEBUG] plugin: starting plugin: path=.terraform/plugins/registry.terraform.io/hashicorp/github/3.1.0/linux_amd64/terraform-provider-github_v3.1.0_x4 args=[.terraform/plugins/registry.terraform.io/hashicorp/github/3.1.0/linux_amd64/terraform-provider-github_v3.1.0_x4]
2020-10-26T18:13:36.188+0530 [DEBUG] plugin: plugin started: path=.terraform/plugins/registry.terraform.io/hashicorp/github/3.1.0/linux_amd64/terraform-provider-github_v3.1.0_x4 pid=103398
2020-10-26T18:13:36.188+0530 [DEBUG] plugin: waiting for RPC address: path=.terraform/plugins/registry.terraform.io/hashicorp/github/3.1.0/linux_amd64/terraform-provider-github_v3.1.0_x4
2020-10-26T18:13:36.193+0530 [INFO] plugin.terraform-provider-github_v3.1.0_x4: configuring server automatic mTLS: timestamp=2020-10-26T18:13:36.193+0530
2020-10-26T18:13:36.214+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: plugin address: address=/tmp/plugin120291116 network=unix timestamp=2020-10-26T18:13:36.214+0530
2020-10-26T18:13:36.214+0530 [DEBUG] plugin: using plugin: version=5
2020-10-26T18:13:36.261+0530 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
github_actions_secret.ecr-keyid: Creating...
2020/10/26 18:13:36 [DEBUG] EvalApply: ProviderMeta config value set
2020/10/26 18:13:36 [DEBUG] github_actions_secret.ecr-keyid: applying the planned Create change
2020-10-26T18:13:36.266+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: 2020/10/26 18:13:36 [DEBUG] Github API Request Details:
2020-10-26T18:13:36.266+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: ---[ REQUEST ]---------------------------------------
2020-10-26T18:13:36.266+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: GET /repos//tyk-analytics/actions/secrets/public-key HTTP/1.1
2020-10-26T18:13:36.266+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Host: api.github.com
2020-10-26T18:13:36.266+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: User-Agent: go-github
2020-10-26T18:13:36.266+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Accept: application/vnd.github.v3+json
2020-10-26T18:13:36.266+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Accept-Encoding: gzip
2020-10-26T18:13:36.266+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4:
2020-10-26T18:13:36.266+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4:
2020-10-26T18:13:36.266+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: -----------------------------------------------------
2020-10-26T18:13:36.266+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: 2020/10/26 18:13:36 [TRACE] Acquiring lock for GitHub API request (%!q(<nil>))
2020-10-26T18:13:36.745+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: 2020/10/26 18:13:36 [TRACE] Releasing lock for GitHub API request (%!q(<nil>))
2020-10-26T18:13:36.745+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: 2020/10/26 18:13:36 [DEBUG] Github API Response Details:
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: ---[ RESPONSE ]--------------------------------------
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: HTTP/1.1 404 Not Found
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Access-Control-Allow-Origin: *
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Content-Security-Policy: default-src 'none'
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Content-Type: application/json; charset=utf-8
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Date: Mon, 26 Oct 2020 12:43:36 GMT
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Server: GitHub.com
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Status: 404 Not Found
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: Vary: Accept-Encoding, Accept, X-Requested-With
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: X-Content-Type-Options: nosniff
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: X-Frame-Options: deny
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: X-Github-Media-Type: github.v3; format=json
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: X-Github-Request-Id: 3061:57D3:1A986EF:23E8FC4:5F96C478
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: X-Ratelimit-Limit: 60
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: X-Ratelimit-Remaining: 9
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: X-Ratelimit-Reset: 1603716383
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: X-Ratelimit-Used: 51
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: X-Xss-Protection: 1; mode=block
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4:
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: {
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: "message": "Not Found",
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: "documentation_url": "https://docs.github.com/rest"
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: }
2020-10-26T18:13:36.746+0530 [DEBUG] plugin.terraform-provider-github_v3.1.0_x4: -----------------------------------------------------
2020/10/26 18:13:36 [DEBUG] github_actions_secret.ecr-keyid: apply errored, but we're indicating that via the Error pointer rather than returning it: GET https://api.github.com/repos//tyk-analytics/actions/secrets/public-key: 404 Not Found []
2020/10/26 18:13:36 [ERROR] eval: *terraform.EvalApplyPost, err: GET https://api.github.com/repos//tyk-analytics/actions/secrets/public-key: 404 Not Found []
2020/10/26 18:13:36 [ERROR] eval: *terraform.EvalSequence, err: GET https://api.github.com/repos//tyk-analytics/actions/secrets/public-key: 404 Not Found []

Error: GET https://api.github.com/repos//tyk-analytics/actions/secrets/public-key: 404 Not Found []
 on github.tf line 5, in resource "github_actions_secret" "ecr-keyid":
5: resource "github_actions_secret" "ecr-keyid" {


2020-10-26T18:13:36.771+0530 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/github/3.1.0/linux_amd64/terraform-provider-github_v3.1.0_x4 pid=103398
2020-10-26T18:13:36.771+0530 [DEBUG] plugin: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment