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

Support OpenSearch Serverless #292

Merged
merged 9 commits into from
Feb 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor fixes:
- Skip calling /GET info for serverless opensearch collection
- Remove unused imports
kukushking committed Feb 10, 2023

Verified

This commit was signed with the committer’s verified signature.
lann Lann
commit 7fd4e91c53f1cdea617e24fc0eef4cd570702623
7 changes: 4 additions & 3 deletions backend/dataall/searchproxy/connect.py
Original file line number Diff line number Diff line change
@@ -73,10 +73,11 @@ def connect(envname='local'):
verify_certs=True,
connection_class=opensearchpy.RequestsHttpConnection,
)
try:

# Avoid calling GET /info endpoint because it is not available in OpenSearch Serverless
if service != "aoss":
print(es.info())
except opensearchpy.exceptions.NotFoundError:
print('Get /info is not available in OpenSearch Serverless')

if not es.indices.exists(index='dataall-index'):
es.indices.create(index='dataall-index', body=CREATE_INDEX_REQUEST_BODY)
print('Create "dataall-index" for dev env')
1 change: 0 additions & 1 deletion deploy/stacks/opensearch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from typing import Optional, List
from aws_cdk import (
aws_ec2 as ec2,
aws_iam as iam,