hashicorp / terraform-provider-tls

Utility provider that works with Transport Layer Security keys and certificates. It provides resources that allow private keys, certificates and certficate requests to be created as part of a Terraform deployment.
https://registry.terraform.io/providers/hashicorp/tls/latest
Mozilla Public License 2.0
183 stars 101 forks source link

This is a bug in the provider, which should be reported in the provider's own issue tracker #304

Closed devranaydin closed 1 year ago

devranaydin commented 1 year ago

Terraform CLI and Provider Versions

Terraform v1.0.0 on darwin_amd64

Your version of Terraform is out of date! The latest version is 1.3.7. You can update by downloading from https://www.terraform.io/downloads.html

Terraform Configuration

resource "tls_private_key" "example" {
  algorithm = "RSA"
  rsa_bits  = "2048"

  lifecycle {
    ignore_changes = all
  }
}

resource "tls_self_signed_cert" "example" {
  private_key_pem = tls_private_key.example.private_key_pem

  subject {
    common_name  = "example.com"
    organization = "Example Ltd"
  }

  validity_period_hours = 12

  allowed_uses = [
    "key_encipherment",
    "digital_signature",
    "server_auth",
    "client_auth"
  ]

  lifecycle {
    ignore_changes = all
  }

}

Expected Behavior

No changes My infrastructure matches the configuration

Actual Behavior

Error: Provider produced invalid plan Provider "registry.terraform.io/hashicorp/tls" planned an invalid value for tls_self_signed_cert.example.ready_for_renewal: planned value cty.UnknownVal(cty.Bool) does not match config value cty.True nor prior value cty.True.

This is a bug in the provider, which should be reported in the provider's own issue tracker

Steps to Reproduce

  1. terraform plan

How much impact is this issue causing?

High

Logs

No response

Additional Information

No response

Code of Conduct

bflad commented 1 year ago

Hi @devranaydin 👋 Thank you for raising this and sorry you're running into trouble here.

I believe this error may be resolved with a Terraform version update to at least version 1.2.6:

Are you able to try upgrading Terraform to see if the issue resolves itself?

devranaydin commented 1 year ago

Thanks a lot , problem solved :)

github-actions[bot] commented 4 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.