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

Cannot create project identity via terraform #42

Open
fsz-codeshop opened this issue Jul 1, 2024 · 0 comments
Open

Cannot create project identity via terraform #42

fsz-codeshop opened this issue Jul 1, 2024 · 0 comments

Comments

@fsz-codeshop
Copy link

When trying to follow the provider documentation available on https://registry.terraform.io/providers/Infisical/infisical/latest/docs/resources/project_identity

terraform {
  required_providers {
    infisical = {
      # version = <latest version>
      source = "infisical/infisical"
    }
  }
}

provider "infisical" {
  host          = "https://app.infisical.com" # Only required if using self hosted instance of Infisical, default is https://app.infisical.com
  client_id     = "<>"
  client_secret = "<>"
}

resource "infisical_project" "example" {
  name = "example"
  slug = "example"
}

resource "infisical_project_identity" "test-identity" {
  project_id  = infisical_project.example.id
  identity_id = "<identity id>"
  roles = [
    {
      role_slug = "admin"
    }
  ]
}

I get the error when trying to create the identity:

╷
│ Error: Error attaching identity to project
│
│   with infisical_project_identity.test-identity,
│   on users.tf line 17, in resource "infisical_project_identity" "test-identity":
│   17: resource "infisical_project_identity" "test-identity" {
│
│ Couldn't create project identity to Infiscial, unexpected error: CallCreateProjectIdentity: Unsuccessful response.
│ [response={"statusCode":500,"message":"Something went wrong","error":"Find one"}]
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

No branches or pull requests

1 participant