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

every apply forces replacement #31

Open
stevethecollier opened this issue Mar 5, 2023 · 0 comments
Open

every apply forces replacement #31

stevethecollier opened this issue Mar 5, 2023 · 0 comments

Comments

@stevethecollier
Copy link

first off, thanks for making this lib, much appreciated.

here is my config:

resource "typesense_collection" "user" {
  name = "user"
  fields {
    name = "name"
    optional = true
    type = "string"
  }
  fields {
    name = "id"
    optional = false
    type = "string"
    index = true
  }
}

and the issue is that every time I run terraform apply, I get

  # module.application.module.search.typesense_collection.user must be replaced
-/+ resource "typesense_collection" "user" {
      ~ id            = "user" -> (known after apply)
        name          = "user"
      ~ num_documents = 1 -> (known after apply)

      ~ fields {
          ~ facet    = false -> (known after apply)
            name     = "name"
            # (3 unchanged attributes hidden)
        }
      + fields {
          + facet    = (known after apply)
          + index    = true # forces replacement
          + name     = "id"
          + optional = false # forces replacement
          + type     = "string" # forces replacement
        }
    }

I would assume that this should not force replacement since I haven't change anything.

am I doing something wrong, or is this a bug?

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