Create main.tf with the content above, maybe adjust the provider configuration
Run terraform plan
Debug Output
No response
Panic Output
No response
Important Factoids
No, nothing special. I just wanted to add some default scopes to the default OIDC provider, but cannot import it.
As a workaround, I created an additional provider and use that.
Terraform Core Version
1.9.2
Terraform Vault Provider Version
3.23.0, 4.3.0
Vault Server Version
1.17.0
Affected Resource(s)
Expected Behavior
An import should work (see https://registry.terraform.io/providers/hashicorp/vault/latest/docs/resources/identity_oidc_provider#import).
Actual Behavior
Planning failed. Terraform encountered an error while generating this plan.
╷ │ Error: resource vault_identity_oidc_provider doesn't support import │ │ ╵
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
terraform plan
Debug Output
No response
Panic Output
No response
Important Factoids
No, nothing special. I just wanted to add some default scopes to the default OIDC provider, but cannot import it. As a workaround, I created an additional provider and use that.
References
Would you like to implement a fix?
No