Skip to content

Instantly share code, notes, and snippets.

@jacobbednarz
Last active September 1, 2022 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobbednarz/20a87cf36b606b1916856f670283db6b to your computer and use it in GitHub Desktop.
Save jacobbednarz/20a87cf36b606b1916856f670283db6b to your computer and use it in GitHub Desktop.
ᐅ TF_LOG=DEBUG terraform apply
2021-12-27T11:15:24.564-0600 [INFO] Terraform version: 1.1.2
2021-12-27T11:15:24.565-0600 [INFO] Go runtime version: go1.17.2
2021-12-27T11:15:24.565-0600 [INFO] CLI args: []string{"terraform", "apply"}
2021-12-27T11:15:24.565-0600 [DEBUG] Attempting to open CLI config file: /Users/yen/.terraformrc
2021-12-27T11:15:24.565-0600 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021-12-27T11:15:24.565-0600 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021-12-27T11:15:24.565-0600 [DEBUG] ignoring non-existing provider search directory /Users/yen/.terraform.d/plugins
2021-12-27T11:15:24.565-0600 [DEBUG] ignoring non-existing provider search directory /Users/yen/Library/Application Support/io.terraform/plugins
2021-12-27T11:15:24.565-0600 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2021-12-27T11:15:24.565-0600 [INFO] CLI command args: []string{"apply"}
2021-12-27T11:15:24.567-0600 [DEBUG] New state was assigned lineage "4dea2cb5-edbf-79b5-31d5-055d7d2f4741"
2021-12-27T11:15:24.658-0600 [DEBUG] checking for provisioner in "."
2021-12-27T11:15:24.661-0600 [DEBUG] checking for provisioner in "/usr/local/bin"
2021-12-27T11:15:24.661-0600 [INFO] backend/local: starting Apply operation
2021-12-27T11:15:24.663-0600 [DEBUG] created provider logger: level=debug
2021-12-27T11:15:24.664-0600 [INFO] provider: configuring client automatic mTLS
2021-12-27T11:15:24.672-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0 args=[.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0]
2021-12-27T11:15:24.674-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0 pid=17982
2021-12-27T11:15:24.674-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0
2021-12-27T11:15:24.687-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: configuring server automatic mTLS: timestamp=2021-12-27T11:15:24.687-0600
2021-12-27T11:15:24.698-0600 [DEBUG] provider.terraform-provider-cloudflare_v3.6.0: plugin address: address=/var/folders/xb/77gkpnrj527cqm82yf4x8_l40000gp/T/plugin855893645 network=unix timestamp=2021-12-27T11:15:24.698-0600
2021-12-27T11:15:24.698-0600 [DEBUG] provider: using plugin: version=5
2021-12-27T11:15:24.722-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-12-27T11:15:24.723-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0 pid=17982
2021-12-27T11:15:24.723-0600 [DEBUG] provider: plugin exited
2021-12-27T11:15:24.724-0600 [DEBUG] created provider logger: level=debug
2021-12-27T11:15:24.724-0600 [INFO] provider: configuring client automatic mTLS
2021-12-27T11:15:24.734-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5]
2021-12-27T11:15:24.736-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5 pid=17983
2021-12-27T11:15:24.737-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5
2021-12-27T11:15:24.749-0600 [INFO] provider.terraform-provider-tls_v3.1.0_x5: configuring server automatic mTLS: timestamp=2021-12-27T11:15:24.748-0600
2021-12-27T11:15:24.788-0600 [DEBUG] provider.terraform-provider-tls_v3.1.0_x5: plugin address: address=/var/folders/xb/77gkpnrj527cqm82yf4x8_l40000gp/T/plugin300155202 network=unix timestamp=2021-12-27T11:15:24.788-0600
2021-12-27T11:15:24.788-0600 [DEBUG] provider: using plugin: version=5
2021-12-27T11:15:24.815-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-12-27T11:15:24.816-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5 pid=17983
2021-12-27T11:15:24.816-0600 [DEBUG] provider: plugin exited
2021-12-27T11:15:24.816-0600 [DEBUG] Building and walking validate graph
2021-12-27T11:15:24.816-0600 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/tls"], implied first by tls_private_key.example
2021-12-27T11:15:24.816-0600 [DEBUG] ProviderTransformer: "tls_cert_request.example" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/tls"]
2021-12-27T11:15:24.816-0600 [DEBUG] ProviderTransformer: "cloudflare_origin_ca_certificate.example" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2021-12-27T11:15:24.816-0600 [DEBUG] ProviderTransformer: "tls_private_key.example" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/tls"]
2021-12-27T11:15:24.816-0600 [DEBUG] ReferenceTransformer: "cloudflare_origin_ca_certificate.example" references: [tls_cert_request.example]
2021-12-27T11:15:24.816-0600 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: []
2021-12-27T11:15:24.816-0600 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/tls\"]" references: []
2021-12-27T11:15:24.816-0600 [DEBUG] ReferenceTransformer: "tls_private_key.example" references: []
2021-12-27T11:15:24.816-0600 [DEBUG] ReferenceTransformer: "tls_cert_request.example" references: [tls_private_key.example tls_private_key.example]
2021-12-27T11:15:24.817-0600 [DEBUG] Starting graph walk: walkValidate
2021-12-27T11:15:24.817-0600 [DEBUG] created provider logger: level=debug
2021-12-27T11:15:24.817-0600 [INFO] provider: configuring client automatic mTLS
2021-12-27T11:15:24.825-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0 args=[.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0]
2021-12-27T11:15:24.827-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0 pid=17984
2021-12-27T11:15:24.827-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0
2021-12-27T11:15:24.838-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: configuring server automatic mTLS: timestamp=2021-12-27T11:15:24.838-0600
2021-12-27T11:15:24.848-0600 [DEBUG] provider.terraform-provider-cloudflare_v3.6.0: plugin address: address=/var/folders/xb/77gkpnrj527cqm82yf4x8_l40000gp/T/plugin1697921912 network=unix timestamp=2021-12-27T11:15:24.848-0600
2021-12-27T11:15:24.848-0600 [DEBUG] provider: using plugin: version=5
2021-12-27T11:15:24.862-0600 [DEBUG] created provider logger: level=debug
2021-12-27T11:15:24.862-0600 [INFO] provider: configuring client automatic mTLS
2021-12-27T11:15:24.872-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5]
2021-12-27T11:15:24.875-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5 pid=17985
2021-12-27T11:15:24.875-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5
2021-12-27T11:15:24.887-0600 [INFO] provider.terraform-provider-tls_v3.1.0_x5: configuring server automatic mTLS: timestamp=2021-12-27T11:15:24.887-0600
2021-12-27T11:15:24.926-0600 [DEBUG] provider.terraform-provider-tls_v3.1.0_x5: plugin address: address=/var/folders/xb/77gkpnrj527cqm82yf4x8_l40000gp/T/plugin416752636 network=unix timestamp=2021-12-27T11:15:24.925-0600
2021-12-27T11:15:24.926-0600 [DEBUG] provider: using plugin: version=5
2021-12-27T11:15:24.954-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-12-27T11:15:24.955-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5 pid=17985
2021-12-27T11:15:24.955-0600 [DEBUG] provider: plugin exited
2021-12-27T11:15:24.962-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-12-27T11:15:24.963-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0 pid=17984
2021-12-27T11:15:24.963-0600 [DEBUG] provider: plugin exited
2021-12-27T11:15:24.963-0600 [INFO] backend/local: apply calling Plan
2021-12-27T11:15:24.963-0600 [DEBUG] Building and walking plan graph for NormalMode
2021-12-27T11:15:24.964-0600 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/tls"], implied first by tls_private_key.example (expand)
2021-12-27T11:15:24.964-0600 [DEBUG] ProviderTransformer: "tls_private_key.example (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/tls"]
2021-12-27T11:15:24.964-0600 [DEBUG] ProviderTransformer: "tls_cert_request.example (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/tls"]
2021-12-27T11:15:24.964-0600 [DEBUG] ProviderTransformer: "cloudflare_origin_ca_certificate.example (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2021-12-27T11:15:24.964-0600 [DEBUG] ReferenceTransformer: "tls_private_key.example (expand)" references: []
2021-12-27T11:15:24.964-0600 [DEBUG] ReferenceTransformer: "tls_cert_request.example (expand)" references: [tls_private_key.example (expand) tls_private_key.example (expand)]
2021-12-27T11:15:24.964-0600 [DEBUG] ReferenceTransformer: "cloudflare_origin_ca_certificate.example (expand)" references: [tls_cert_request.example (expand)]
2021-12-27T11:15:24.964-0600 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: []
2021-12-27T11:15:24.964-0600 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/tls\"]" references: []
2021-12-27T11:15:24.964-0600 [DEBUG] Starting graph walk: walkPlan
2021-12-27T11:15:24.964-0600 [DEBUG] created provider logger: level=debug
2021-12-27T11:15:24.965-0600 [INFO] provider: configuring client automatic mTLS
2021-12-27T11:15:24.974-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5]
2021-12-27T11:15:24.977-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5 pid=17986
2021-12-27T11:15:24.977-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5
2021-12-27T11:15:24.989-0600 [INFO] provider.terraform-provider-tls_v3.1.0_x5: configuring server automatic mTLS: timestamp=2021-12-27T11:15:24.988-0600
2021-12-27T11:15:25.030-0600 [DEBUG] provider.terraform-provider-tls_v3.1.0_x5: plugin address: address=/var/folders/xb/77gkpnrj527cqm82yf4x8_l40000gp/T/plugin297905825 network=unix timestamp=2021-12-27T11:15:25.030-0600
2021-12-27T11:15:25.030-0600 [DEBUG] provider: using plugin: version=5
2021-12-27T11:15:25.059-0600 [DEBUG] created provider logger: level=debug
2021-12-27T11:15:25.059-0600 [INFO] provider: configuring client automatic mTLS
2021-12-27T11:15:25.068-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0 args=[.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0]
2021-12-27T11:15:25.071-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0 pid=17987
2021-12-27T11:15:25.071-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0
2021-12-27T11:15:25.083-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: configuring server automatic mTLS: timestamp=2021-12-27T11:15:25.082-0600
2021-12-27T11:15:25.093-0600 [DEBUG] provider.terraform-provider-cloudflare_v3.6.0: plugin address: network=unix address=/var/folders/xb/77gkpnrj527cqm82yf4x8_l40000gp/T/plugin1473959660 timestamp=2021-12-27T11:15:25.093-0600
2021-12-27T11:15:25.093-0600 [DEBUG] provider: using plugin: version=5
2021-12-27T11:15:25.107-0600 [DEBUG] Resource instance state not found for node "tls_private_key.example", instance tls_private_key.example
2021-12-27T11:15:25.107-0600 [DEBUG] ReferenceTransformer: "tls_private_key.example" references: []
2021-12-27T11:15:25.107-0600 [DEBUG] refresh: tls_private_key.example: no state, so not refreshing
2021-12-27T11:15:25.109-0600 [WARN] Provider "registry.terraform.io/hashicorp/tls" produced an invalid plan for tls_private_key.example, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .rsa_bits: planned value cty.NumberIntVal(2048) for a non-computed attribute
- .ecdsa_curve: planned value cty.StringVal("P224") for a non-computed attribute
2021-12-27T11:15:25.109-0600 [DEBUG] Resource instance state not found for node "tls_cert_request.example", instance tls_cert_request.example
2021-12-27T11:15:25.109-0600 [DEBUG] ReferenceTransformer: "tls_cert_request.example" references: []
2021-12-27T11:15:25.110-0600 [DEBUG] refresh: tls_cert_request.example: no state, so not refreshing
2021-12-27T11:15:25.113-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-12-27T11:15:25.115-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5 pid=17986
2021-12-27T11:15:25.115-0600 [DEBUG] provider: plugin exited
2021-12-27T11:15:25.123-0600 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" changed the config value, but that value is unused
2021-12-27T11:15:25.124-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: 2021/12/27 11:15:25 [INFO] Cloudflare Client configured for user: yen@envoy.com: timestamp=2021-12-27T11:15:25.124-0600
2021-12-27T11:15:25.124-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: 2021/12/27 11:15:25 [INFO] Using specified account id 56ab6491573957a8cf0731c17c0ad26f in Cloudflare provider: timestamp=2021-12-27T11:15:25.124-0600
2021-12-27T11:15:25.124-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: 2021/12/27 11:15:25 [INFO] Cloudflare Client configured for user: yen@envoy.com: timestamp=2021-12-27T11:15:25.124-0600
2021-12-27T11:15:25.124-0600 [DEBUG] Resource instance state not found for node "cloudflare_origin_ca_certificate.example", instance cloudflare_origin_ca_certificate.example
2021-12-27T11:15:25.124-0600 [DEBUG] ReferenceTransformer: "cloudflare_origin_ca_certificate.example" references: []
2021-12-27T11:15:25.124-0600 [DEBUG] refresh: cloudflare_origin_ca_certificate.example: no state, so not refreshing
2021-12-27T11:15:25.126-0600 [WARN] Provider "registry.terraform.io/cloudflare/cloudflare" produced an invalid plan for cloudflare_origin_ca_certificate.example, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .requested_validity: planned value cty.UnknownVal(cty.Number) does not match config value cty.NumberIntVal(7)
2021-12-27T11:15:25.127-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-12-27T11:15:25.128-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0 pid=17987
2021-12-27T11:15:25.129-0600 [DEBUG] provider: plugin exited
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated
with the following symbols:
+ create
Terraform will perform the following actions:
# cloudflare_origin_ca_certificate.example will be created
+ resource "cloudflare_origin_ca_certificate" "example" {
+ certificate = (known after apply)
+ csr = (known after apply)
+ expires_on = (known after apply)
+ hostnames = [
+ "example.com",
]
+ id = (known after apply)
+ request_type = "origin-rsa"
+ requested_validity = (known after apply)
}
# tls_cert_request.example will be created
+ resource "tls_cert_request" "example" {
+ cert_request_pem = (known after apply)
+ id = (known after apply)
+ key_algorithm = "RSA"
+ private_key_pem = (sensitive value)
+ subject {
+ organization = "Terraform Test"
}
}
# tls_private_key.example will be created
+ resource "tls_private_key" "example" {
+ algorithm = "RSA"
+ ecdsa_curve = "P224"
+ id = (known after apply)
+ private_key_pem = (sensitive value)
+ public_key_fingerprint_md5 = (known after apply)
+ public_key_openssh = (known after apply)
+ public_key_pem = (known after apply)
+ rsa_bits = 2048
}
Plan: 3 to add, 0 to change, 0 to destroy.
2021-12-27T11:15:25.129-0600 [DEBUG] command: asking for input: "\nDo you want to perform these actions?"
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
2021-12-27T11:15:29.170-0600 [INFO] backend/local: apply calling Apply
2021-12-27T11:15:29.170-0600 [DEBUG] Building and walking apply graph for NormalMode plan
2021-12-27T11:15:29.170-0600 [DEBUG] Resource state not found for node "tls_private_key.example", instance tls_private_key.example
2021-12-27T11:15:29.170-0600 [DEBUG] Resource state not found for node "tls_cert_request.example", instance tls_cert_request.example
2021-12-27T11:15:29.170-0600 [DEBUG] Resource state not found for node "cloudflare_origin_ca_certificate.example", instance cloudflare_origin_ca_certificate.example
2021-12-27T11:15:29.170-0600 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/tls"], implied first by tls_cert_request.example (expand)
2021-12-27T11:15:29.171-0600 [DEBUG] ProviderTransformer: "tls_private_key.example (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/tls"]
2021-12-27T11:15:29.171-0600 [DEBUG] ProviderTransformer: "tls_cert_request.example (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/tls"]
2021-12-27T11:15:29.171-0600 [DEBUG] ProviderTransformer: "tls_private_key.example" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/tls"]
2021-12-27T11:15:29.171-0600 [DEBUG] ProviderTransformer: "tls_cert_request.example" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/tls"]
2021-12-27T11:15:29.171-0600 [DEBUG] ProviderTransformer: "cloudflare_origin_ca_certificate.example" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2021-12-27T11:15:29.171-0600 [DEBUG] ProviderTransformer: "cloudflare_origin_ca_certificate.example (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2021-12-27T11:15:29.171-0600 [DEBUG] ReferenceTransformer: "cloudflare_origin_ca_certificate.example (expand)" references: []
2021-12-27T11:15:29.171-0600 [DEBUG] ReferenceTransformer: "tls_private_key.example (expand)" references: []
2021-12-27T11:15:29.171-0600 [DEBUG] ReferenceTransformer: "tls_cert_request.example (expand)" references: []
2021-12-27T11:15:29.171-0600 [DEBUG] ReferenceTransformer: "tls_private_key.example" references: []
2021-12-27T11:15:29.171-0600 [DEBUG] ReferenceTransformer: "tls_cert_request.example" references: [tls_private_key.example (expand) tls_private_key.example tls_private_key.example tls_private_key.example (expand) tls_private_key.example tls_private_key.example]
2021-12-27T11:15:29.171-0600 [DEBUG] ReferenceTransformer: "cloudflare_origin_ca_certificate.example" references: [tls_cert_request.example (expand) tls_cert_request.example tls_cert_request.example]
2021-12-27T11:15:29.171-0600 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: []
2021-12-27T11:15:29.171-0600 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/tls\"]" references: []
2021-12-27T11:15:29.172-0600 [DEBUG] Starting graph walk: walkApply
2021-12-27T11:15:29.172-0600 [DEBUG] created provider logger: level=debug
2021-12-27T11:15:29.172-0600 [INFO] provider: configuring client automatic mTLS
2021-12-27T11:15:29.183-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0 args=[.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0]
2021-12-27T11:15:29.185-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0 pid=17996
2021-12-27T11:15:29.186-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0
2021-12-27T11:15:29.198-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: configuring server automatic mTLS: timestamp=2021-12-27T11:15:29.198-0600
2021-12-27T11:15:29.209-0600 [DEBUG] provider.terraform-provider-cloudflare_v3.6.0: plugin address: address=/var/folders/xb/77gkpnrj527cqm82yf4x8_l40000gp/T/plugin360500049 network=unix timestamp=2021-12-27T11:15:29.209-0600
2021-12-27T11:15:29.209-0600 [DEBUG] provider: using plugin: version=5
2021-12-27T11:15:29.224-0600 [DEBUG] created provider logger: level=debug
2021-12-27T11:15:29.224-0600 [INFO] provider: configuring client automatic mTLS
2021-12-27T11:15:29.236-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5]
2021-12-27T11:15:29.239-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5 pid=17997
2021-12-27T11:15:29.239-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5
2021-12-27T11:15:29.242-0600 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" changed the config value, but that value is unused
2021-12-27T11:15:29.252-0600 [INFO] provider.terraform-provider-tls_v3.1.0_x5: configuring server automatic mTLS: timestamp=2021-12-27T11:15:29.252-0600
2021-12-27T11:15:29.290-0600 [DEBUG] provider: using plugin: version=5
2021-12-27T11:15:29.290-0600 [DEBUG] provider.terraform-provider-tls_v3.1.0_x5: plugin address: address=/var/folders/xb/77gkpnrj527cqm82yf4x8_l40000gp/T/plugin959497408 network=unix timestamp=2021-12-27T11:15:29.290-0600
2021-12-27T11:15:29.320-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: 2021/12/27 11:15:29 [INFO] Cloudflare Client configured for user: yen@envoy.com: timestamp=2021-12-27T11:15:29.320-0600
2021-12-27T11:15:29.320-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: 2021/12/27 11:15:29 [INFO] Using specified account id 56ab6491573957a8cf0731c17c0ad26f in Cloudflare provider: timestamp=2021-12-27T11:15:29.320-0600
2021-12-27T11:15:29.320-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: 2021/12/27 11:15:29 [INFO] Cloudflare Client configured for user: yen@envoy.com: timestamp=2021-12-27T11:15:29.320-0600
2021-12-27T11:15:29.323-0600 [WARN] Provider "registry.terraform.io/hashicorp/tls" produced an invalid plan for tls_private_key.example, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .rsa_bits: planned value cty.NumberIntVal(2048) for a non-computed attribute
- .ecdsa_curve: planned value cty.StringVal("P224") for a non-computed attribute
tls_private_key.example: Creating...
2021-12-27T11:15:29.323-0600 [INFO] Starting apply for tls_private_key.example
2021-12-27T11:15:29.323-0600 [DEBUG] tls_private_key.example: applying the planned Create change
tls_private_key.example: Creation complete after 0s [id=c83945abbc5df4549226eab2412679f1e787edd3]
2021-12-27T11:15:29.516-0600 [WARN] Provider "registry.terraform.io/hashicorp/tls" produced an invalid plan for tls_cert_request.example, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .private_key_pem: sensitive planned value does not match config value
tls_cert_request.example: Creating...
2021-12-27T11:15:29.517-0600 [INFO] Starting apply for tls_cert_request.example
2021-12-27T11:15:29.517-0600 [DEBUG] tls_cert_request.example: applying the planned Create change
2021-12-27T11:15:29.520-0600 [WARN] Provider "provider[\"registry.terraform.io/hashicorp/tls\"]" produced an unexpected new value for tls_cert_request.example, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .subject[0].locality: was null, but now cty.StringVal("")
- .subject[0].province: was null, but now cty.StringVal("")
- .subject[0].serial_number: was null, but now cty.StringVal("")
- .subject[0].postal_code: was null, but now cty.StringVal("")
- .subject[0].country: was null, but now cty.StringVal("")
- .subject[0].organizational_unit: was null, but now cty.StringVal("")
tls_cert_request.example: Creation complete after 0s [id=025f29fdecbc732114f8bc3a23735ff084e05525]
2021-12-27T11:15:29.542-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-12-27T11:15:29.543-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/tls/3.1.0/darwin_amd64/terraform-provider-tls_v3.1.0_x5 pid=17997
2021-12-27T11:15:29.543-0600 [DEBUG] provider: plugin exited
2021-12-27T11:15:29.547-0600 [WARN] Provider "registry.terraform.io/cloudflare/cloudflare" produced an invalid plan for cloudflare_origin_ca_certificate.example, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .requested_validity: planned value cty.UnknownVal(cty.Number) does not match config value cty.NumberIntVal(7)
cloudflare_origin_ca_certificate.example: Creating...
2021-12-27T11:15:29.547-0600 [INFO] Starting apply for cloudflare_origin_ca_certificate.example
2021-12-27T11:15:29.547-0600 [DEBUG] cloudflare_origin_ca_certificate.example: applying the planned Create change
2021-12-27T11:15:29.548-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: 2021/12/27 11:15:29 [INFO] Creating Cloudflare OriginCACertificate: cloudflare.OriginCACertificate{ID:"", Certificate:"", Hostnames:[]string{"example.com"}, ExpiresOn:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), RequestType:"origin-rsa", RequestValidity:0, RevokedAt:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), CSR:"-----BEGIN CERTIFICATE REQUEST-----\nMIICXjCCAUYCAQAwGTEXMBUGA1UEChMOVGVycmFmb3JtIFRlc3QwggEiMA0GCSqG\nSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDg4vkPHTwqHd1+T9IAAk5kupV2fuYyE/bx\ngWkFq3xS9T0t2dH6wac+cXRAX4PvvDukOEQ5xlUWVlM5xoN1UqJWj+C70ieO74+2\nqlU45pfv007XtNeq2ttHUjvdWMgx14AqiDydoqxb4mUbLzRgYo5BLEOhN5i8lLJ9\n2V0dtF/9pdHK1cdlPxlZUP7Fsa+5cvnDMdha0/xg+jDzrUF5cc5oR++IV+iLcFCQ\n1tUwdDPEUIlFG21e6YFvBy4OiMGDWvt9cvjtWVJHzSiK7RMjgzBKlLSsxXM9ZWAL\najAY4cT3nMURgDYq0W1Lq51O4AKau/SbcoOdtwaxzqvP/qx5Y0qnAgMBAAGgADAN\nBgkqhkiG9w0BAQsFAAOCAQEA0895WTW6nep53O4/Yb5CW+dVU5mwfkL/R0nLdHzv\nLhmDpSWhp1qam60D1uDKRvewHsfk8EkGBI42i0X6jzeLPyuk4nRuFpUiv3FzOG6v\n6+K8QKBOnL2aSZLKeYrkEzOBwh2SLT79eOM8wUG3FTHLBj/+qqo5l2h2/mwY6Rc/\nYe3mix1gFXk1xEMsiy73aAvhy7odu/jwi+W/sTC4TSM3niRo+v39z8h2cmmafTeV\nnPpy7IuR+HP/4HBJEydxEziJ8mrbd+qvjrmHHHwy/TbwO1bccYr1Hoek3V8WA4Z+\nQFpQaUUMHouY6VEgPVhY5P3/hpO0krRAxIrpw8kj/VEKBA==\n-----END CERTIFICATE REQUEST-----\n"}: timestamp=2021-12-27T11:15:29.548-0600
2021-12-27T11:15:29.548-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: 2021/12/27 11:15:29 [DEBUG] Cloudflare API Request Details:
---[ REQUEST ]---------------------------------------
POST /client/v4/certificates HTTP/1.1
Host: api.cloudflare.com
User-Agent: terraform/1.1.2 terraform-plugin-sdk/2.10.1 terraform-provider-cloudflare/3.6.0
Content-Length: 1100
Content-Type: application/json
X-Auth-User-Service-Key:
Accept-Encoding: gzip
{
"id": "",
"certificate": "",
"hostnames": [
"example.com"
],
"expires_on": "0001-01-01T00:00:00Z",
"request_type": "origin-rsa",
"requested_validity": 0,
"revoked_at": "0001-01-01T00:00:00Z",
"csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIICXjCCAUYCAQAwGTEXMBUGA1UEChMOVGVycmFmb3JtIFRlc3QwggEiMA0GCSqG\nSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDg4vkPHTwqHd1+T9IAAk5kupV2fuYyE/bx\ngWkFq3xS9T0t2dH6wac+cXRAX4PvvDukOEQ5xlUWVlM5xoN1UqJWj+C70ieO74+2\nqlU45pfv007XtNeq2ttHUjvdWMgx14AqiDydoqxb4mUbLzRgYo5BLEOhN5i8lLJ9\n2V0dtF/9pdHK1cdlPxlZUP7Fsa+5cvnDMdha0/xg+jDzrUF5cc5oR++IV+iLcFCQ\n1tUwdDPEUIlFG21e6YFvBy4OiMGDWvt9cvjtWVJHzSiK7RMjgzBKlLSsxXM9ZWAL\najAY4cT3nMURgDYq0W1Lq51O4AKau/SbcoOdtwaxzqvP/qx5Y0qnAgMBAAGgADAN\nBgkqhkiG9w0BAQsFAAOCAQEA0895WTW6nep53O4/Yb5CW+dVU5mwfkL/R0nLdHzv\nLhmDpSWhp1qam60D1uDKRvewHsfk8EkGBI42i0X6jzeLPyuk4nRuFpUiv3FzOG6v\n6+K8QKBOnL2aSZLKeYrkEzOBwh2SLT79eOM8wUG3FTHLBj/+qqo5l2h2/mwY6Rc/\nYe3mix1gFXk1xEMsiy73aAvhy7odu/jwi+W/sTC4TSM3niRo+v39z8h2cmmafTeV\nnPpy7IuR+HP/4HBJEydxEziJ8mrbd+qvjrmHHHwy/TbwO1bccYr1Hoek3V8WA4Z+\nQFpQaUUMHouY6VEgPVhY5P3/hpO0krRAxIrpw8kj/VEKBA==\n-----END CERTIFICATE REQUEST-----\n"
}
-----------------------------------------------------: timestamp=2021-12-27T11:15:29.548-0600
2021-12-27T11:15:29.895-0600 [INFO] provider.terraform-provider-cloudflare_v3.6.0: 2021/12/27 11:15:29 [DEBUG] Cloudflare API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 400 Bad Request
Connection: close
Cf-Cache-Status: DYNAMIC
Cf-Ray: 6c4430f7cbec285d-DFW
Content-Type: application/json
Date: Mon, 27 Dec 2021 17:15:29 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU4vq74ZFe3sNVUZZr6gzJThqwB; SameSite=Lax; path=/; expires=Mon, 27-Dec-21 19:45:30 GMT; HttpOnly
Set-Cookie: __cfruid=efd5291b9b75425ccacad71189986762d653a9ec-1640625329; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
Vary: Accept-Encoding
{
"success": false,
"errors": [
{
"code": 10000,
"message": "Authentication error"
}
]
}
-----------------------------------------------------: timestamp=2021-12-27T11:15:29.895-0600
2021-12-27T11:15:29.917-0600 [ERROR] vertex "cloudflare_origin_ca_certificate.example" error: error creating origin certificate: HTTP status 400: Authentication error (10000)
│ Error: error creating origin certificate: HTTP status 400: Authentication error (10000)
│ with cloudflare_origin_ca_certificate.example,
│ on test.tf line 16, in resource "cloudflare_origin_ca_certificate" "example":
│ 16: resource "cloudflare_origin_ca_certificate" "example" {
2021-12-27T11:15:29.940-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-12-27T11:15:29.942-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.6.0/darwin_amd64/terraform-provider-cloudflare_v3.6.0 pid=17996
2021-12-27T11:15:29.943-0600 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment