terraform-provider-vault icon indicating copy to clipboard operation
terraform-provider-vault copied to clipboard

vault_pki_secret_backend_role missing argument `issuer_ref`

Open dekimsey opened this issue 2 years ago • 1 comments

Terraform Version

Terraform v1.2.6
on darwin_arm64
+ provider registry.terraform.io/hashicorp/vault v3.8.0

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

Affected Resource(s)

Please list the resources as a list, for example:

  • vault_pki_secret_backend_role

Terraform Configuration Files

resource "vault_pki_secret_backend_role" "demo" {
    ...
    issuer_ref = "other"
    allow_ip_sans = [...]
    exclude_cn_from_sans = true
}

Debug Output

n/a

Panic Output

n/a

Expected Behavior

I expect to be able to change some of the Role parameters listed on the Create/Update Role documentation.

Actual Behavior

Terraform does not recognize the parameters, there are a few. I've identified a couple in my example above.

│ Error: Unsupported argument
│ 
│   on demo.tf line 1, in resource "vault_pki_secret_backend_role" "demo":
│   78:   issuer_ref = "other"
│ 
│ An argument named "issuer_ref" is not expected here.

Steps to Reproduce

  1. terraform plan

Important Factoids

I noticed Vault also has a role configuration option AllowTokenDisplayName but that doesn't seem to be documented and it's not exposed in any way I can see. I'm not clear if that's an internal-only configuration.

References

There are a few missing parameters.

  • #1486
  • #1419

dekimsey avatar Sep 08 '22 17:09 dekimsey

Duplicate of #1510

ANGkeith avatar Sep 18 '22 18:09 ANGkeith

Closed by https://github.com/hashicorp/terraform-provider-vault/pull/1845

fairclothjm avatar May 15 '23 14:05 fairclothjm