Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vault_identity_oidc_scope import does not work #1473

Closed
kristian-lesko opened this issue May 31, 2022 · 0 comments · Fixed by #1548
Closed

vault_identity_oidc_scope import does not work #1473

kristian-lesko opened this issue May 31, 2022 · 0 comments · Fixed by #1548
Assignees

Comments

@kristian-lesko
Copy link

kristian-lesko commented May 31, 2022

Terraform Version

Terraform v1.2.1
on linux_amd64
+ provider registry.terraform.io/hashicorp/vault v3.6.0

Affected Resource(s)

Please list the resources as a list, for example:

  • vault_identity_oidc_scope

Terraform Configuration Files

resource "vault_identity_oidc_scope" "test" {
  name     = "email"
  template = jsonencode(
  {
    email = "{{identity.entity.metadata.email}}",
  }
  )
}

Expected Behavior

As per vault_identity_oidc_scope docs, import of the resource should be supported.

Actual Behavior

Any attempt at importing a resource of this type fails.

Steps to Reproduce

  1. create a Vault OIDC scope:
vault write identity/oidc/scope/email template='{"email": {{identity.entity.metadata.email}}}' description='User email scope'
  1. terraform import 'vault_identity_oidc_scope.test' 'email'

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants