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

feat(datasource): pinecone_collection #4

Merged
merged 3 commits into from
Oct 5, 2023
Merged

Conversation

thiskevinwang
Copy link
Owner

@thiskevinwang thiskevinwang commented Oct 5, 2023

Description

This introduces a pinecone_collection data-source

provider "pinecone" {}

data "pinecone_collection" "existing-collection" {
  name = "testindex"
}

resource "pinecone_index" "my-first-index" {
  name   = "testidx"
  metric = "cosine"
  pods   = 1

  source_collection = data.pinecone_collection.existing-collection.name
  dimension = data.pinecone_collection.existing-collection.dimension
}

@thiskevinwang thiskevinwang merged commit 10e4ae3 into main Oct 5, 2023
6 checks passed
@thiskevinwang thiskevinwang deleted the collection-data-source branch October 5, 2023 18:29
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 this pull request may close these issues.

None yet

1 participant