Skip to content

Instantly share code, notes, and snippets.

@lneves75
Created October 10, 2024 14:18
Show Gist options
  • Save lneves75/a727c30dd4f942ae90dea7b068af1d6a to your computer and use it in GitHub Desktop.
Save lneves75/a727c30dd4f942ae90dea7b068af1d6a to your computer and use it in GitHub Desktop.
cloudflare_certificate_pack plan error on certificate_authority validation
2024-10-10T16:14:55.911+0200 [INFO] Terraform version: 1.9.7
2024-10-10T16:14:55.911+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.58.0
2024-10-10T16:14:55.911+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.20.0
2024-10-10T16:14:55.911+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2024-10-10T16:14:55.911+0200 [DEBUG] using github.com/zclconf/go-cty v1.14.4
2024-10-10T16:14:55.911+0200 [INFO] Go runtime version: go1.22.7
2024-10-10T16:14:55.911+0200 [INFO] CLI args: []string{"terraform", "plan"}
2024-10-10T16:14:55.911+0200 [DEBUG] Attempting to open CLI config file: /Users/luis/.terraformrc
2024-10-10T16:14:55.911+0200 [INFO] Loading CLI configuration from /Users/luis/.terraformrc
2024-10-10T16:14:55.912+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2024-10-10T16:14:55.912+0200 [DEBUG] ignoring non-existing provider search directory /Users/luis/.terraform.d/plugins
2024-10-10T16:14:55.912+0200 [DEBUG] ignoring non-existing provider search directory /Users/luis/Library/Application Support/io.terraform/plugins
2024-10-10T16:14:55.912+0200 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2024-10-10T16:14:55.912+0200 [INFO] CLI command args: []string{"plan"}
2024-10-10T16:14:55.943+0200 [DEBUG] checking for provisioner in "."
2024-10-10T16:14:55.946+0200 [DEBUG] checking for provisioner in "/opt/homebrew/bin"
2024-10-10T16:14:55.946+0200 [INFO] backend/local: starting Plan operation
2024-10-10T16:14:55.947+0200 [DEBUG] created provider logger: level=debug
2024-10-10T16:14:55.947+0200 [INFO] provider: configuring client automatic mTLS
2024-10-10T16:14:55.954+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/4.43.0/darwin_arm64/terraform-provider-cloudflare_v4.43.0 args=[".terraform/providers/registry.terraform.io/cloudflare/cloudflare/4.43.0/darwin_arm64/terraform-provider-cloudflare_v4.43.0"]
2024-10-10T16:14:55.956+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/4.43.0/darwin_arm64/terraform-provider-cloudflare_v4.43.0 pid=98837
2024-10-10T16:14:55.956+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/4.43.0/darwin_arm64/terraform-provider-cloudflare_v4.43.0
2024-10-10T16:14:55.968+0200 [INFO] provider.terraform-provider-cloudflare_v4.43.0: configuring server automatic mTLS: timestamp="2024-10-10T16:14:55.967+0200"
2024-10-10T16:14:55.974+0200 [DEBUG] provider: using plugin: version=6
2024-10-10T16:14:55.974+0200 [DEBUG] provider.terraform-provider-cloudflare_v4.43.0: plugin address: address=/var/folders/pz/n98kgwf95hz_n4kk2028qpxr0000gn/T/plugin1518003612 network=unix timestamp="2024-10-10T16:14:55.974+0200"
2024-10-10T16:14:55.994+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-10-10T16:14:55.995+0200 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/4.43.0/darwin_arm64/terraform-provider-cloudflare_v4.43.0 id=98837
2024-10-10T16:14:55.995+0200 [DEBUG] provider: plugin exited
2024-10-10T16:14:55.995+0200 [DEBUG] Building and walking validate graph
2024-10-10T16:14:55.996+0200 [DEBUG] ProviderTransformer: "data.cloudflare_zone.example" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2024-10-10T16:14:55.996+0200 [DEBUG] ProviderTransformer: "cloudflare_certificate_pack.example" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2024-10-10T16:14:55.996+0200 [DEBUG] ReferenceTransformer: "cloudflare_certificate_pack.example" references: [data.cloudflare_zone.example]
2024-10-10T16:14:55.996+0200 [DEBUG] ReferenceTransformer: "data.cloudflare_zone.example" references: []
2024-10-10T16:14:55.996+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: []
2024-10-10T16:14:55.996+0200 [DEBUG] Starting graph walk: walkValidate
2024-10-10T16:14:55.996+0200 [DEBUG] created provider logger: level=debug
2024-10-10T16:14:55.996+0200 [INFO] provider: configuring client automatic mTLS
2024-10-10T16:14:55.999+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/4.43.0/darwin_arm64/terraform-provider-cloudflare_v4.43.0 args=[".terraform/providers/registry.terraform.io/cloudflare/cloudflare/4.43.0/darwin_arm64/terraform-provider-cloudflare_v4.43.0"]
2024-10-10T16:14:56.001+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/4.43.0/darwin_arm64/terraform-provider-cloudflare_v4.43.0 pid=98838
2024-10-10T16:14:56.001+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/4.43.0/darwin_arm64/terraform-provider-cloudflare_v4.43.0
2024-10-10T16:14:56.013+0200 [INFO] provider.terraform-provider-cloudflare_v4.43.0: configuring server automatic mTLS: timestamp="2024-10-10T16:14:56.013+0200"
2024-10-10T16:14:56.019+0200 [DEBUG] provider: using plugin: version=6
2024-10-10T16:14:56.019+0200 [DEBUG] provider.terraform-provider-cloudflare_v4.43.0: plugin address: address=/var/folders/pz/n98kgwf95hz_n4kk2028qpxr0000gn/T/plugin65384573 network=unix timestamp="2024-10-10T16:14:56.019+0200"
2024-10-10T16:14:56.026+0200 [ERROR] provider.terraform-provider-cloudflare_v4.43.0: Response contains error diagnostic: tf_rpc=ValidateResourceConfig @module=sdk.proto tf_proto_version=6.6 tf_resource_type=cloudflare_certificate_pack tf_provider_addr=registry.terraform.io/cloudflare/cloudflare diagnostic_attribute="AttributeName(\"certificate_authority\")" diagnostic_severity=ERROR diagnostic_summary="expected certificate_authority to be one of [\"digicert\" \"lets_encrypt\" \"google\"], got ssl_com" tf_req_id=678e8c10-d6cb-6275-4cb8-a086e13aa2ef @caller=github.com/hashicorp/terraform-plugin-go@v0.24.0/tfprotov6/internal/diag/diagnostics.go:58 diagnostic_detail="" timestamp="2024-10-10T16:14:56.026+0200"
2024-10-10T16:14:56.027+0200 [ERROR] vertex "cloudflare_certificate_pack.example" error: expected certificate_authority to be one of ["digicert" "lets_encrypt" "google"], got ssl_com
│ Error: expected certificate_authority to be one of ["digicert" "lets_encrypt" "google"], got ssl_com
│ with cloudflare_certificate_pack.example,
│ on certificate.tf line 7, in resource "cloudflare_certificate_pack" "example":
│ 7: certificate_authority = "ssl_com"
2024-10-10T16:14:56.027+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-10-10T16:14:56.031+0200 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/4.43.0/darwin_arm64/terraform-provider-cloudflare_v4.43.0 id=98838
2024-10-10T16:14:56.031+0200 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment