Loading...
Loading...
### Terraform Version ```shell 1.14.x ``` ### Terraform Configuration Files ```terraform import { to = vault_jwt_auth_backend.jwt id = "jwt-tfe" } ``` ```shell $ vault auth list | grep jwt-tfe jwt-tfe/ jwt auth_jwt_96c2cde4 n/a n/a ``` ### Debug Output ```shell terraform plan -generate-config-out=generated.tf vault_jwt_auth_backend.jwt: Preparing import... [id=jwt-tfe] vault_jwt_auth_backend.jwt: Refreshing state... [id=jwt-tfe] Planning failed. Terraform encountered an error while generating this plan. ╷ │ Warning: Config generation is experimental │ │ Generating configuration during import is currently experimental, and the generated configuration format may change in future versions. ╵ ╷ │ Error: expected tune.0.listing_visibility to be one of ["unauth" "hidden"], got │ │ with vault_jwt_auth_backend.jwt, │ on generated.tf line 1: │ (source code not available) │ ╵ ╷ │ Error: Conflicting configuration arguments │ │ with vault_jwt_auth_backend.jwt, │ on generated.tf line 9: │ (source code not available) │ │ "jwt_validation_pubkeys": conflicts with oidc_discovery_url ╵ ╷ │ Error: Conflicting configuration arguments │ │ with vault_jwt_auth_backend.jwt, │ on generated.tf line 16: │ (source code not available) │ │ "oidc_discovery_url": conflicts with jwt_validation_pubkeys ``` ### Expected Behavior import should generate a codeblock for `vault_jwt_auth_backend` resource ### Actual Behavior command errors during plan but generates the following HCL: ```terraform resource "vault_jwt_auth_backend" "jwt" { bound_issuer = "https://select-perch.drew-mullen.sbx.hashidemos.io" default_role = null description = null disable_remount = null jwks_ca_pem = null jwks_pairs = [] jwks_url = null jwt_supported_algs = [] jwt_validation_pubkeys = [] local = false namespace = null namespace_in_state = true oidc_client_id = null oidc_client_secret = null # sensitive oidc_discovery_ca_pem = null oidc_discovery_url = "https://select-perch.drew-mullen.sbx.hashidemos.io" oidc_response_mode = null oidc_response_types = [] path = "jwt-tfe" provider_config = {} tune = [{ allowed_response_headers = [] audit_non_hmac_request_keys = [] audit_non_hmac_response_keys = [] default_lease_ttl = "1h" listing_visibility = "" max_lease_ttl = "768h" passthrough_request_headers = [] token_type = "default-service" }] type = "jwt" } ``` ### Steps to Reproduce n/a ### Additional Context I ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.