-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[New Resource]: AWS Opensearch Index #37729
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
@vicotrbb You can use the OpenSearch Provider to create indices in your OpenSearch Serverless domain today. Here is an example for creating an index for Bedrock knowledge base. However, you must use v2.2.0 of the provider for now, as this issue causes authentication issue with OSS domains. provider "opensearch" {
url = aws_opensearchserverless_collection.forex_kb.collection_endpoint
healthcheck = false
}
resource "opensearch_index" "forex_kb" {
name = "bedrock-knowledge-base-default-index"
number_of_shards = "2"
number_of_replicas = "0"
index_knn = true
index_knn_algo_param_ef_search = "512"
mappings = <<-EOF
{
"properties": {
"bedrock-knowledge-base-default-vector": {
"type": "knn_vector",
"dimension": 1536,
"method": {
"name": "hnsw",
"engine": "faiss",
"parameters": {
"m": 16,
"ef_construction": 512
},
"space_type": "l2"
}
},
"AMAZON_BEDROCK_METADATA": {
"type": "text",
"index": "false"
},
"AMAZON_BEDROCK_TEXT_CHUNK": {
"type": "text",
"index": "true"
}
}
}
EOF
force_destroy = true
depends_on = [aws_opensearchserverless_collection.forex_kb]
} |
Thanks @acwwat, it's can work. |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
I would like to have a resource to create AWS opensearch (Serverless) indexes.
Requested Resource(s) and/or Data Source(s)
aws_opensearchserverless_index
Potential Terraform Configuration
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: