Skip to content

Commit

Permalink
account for opensearch -> s3 zero-etl
Browse files Browse the repository at this point in the history
  • Loading branch information
EverettBerry committed Nov 30, 2023
1 parent 50c5eac commit bca29ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ def scrape(output_file, input_file=None):

# loop through products, and only fetch available instances for now
for sku, product in tqdm(six.iteritems(data["products"])):
if product.get("productFamily", None) == "Amazon OpenSearch Service Instance":
if (
product.get("productFamily", None) == "Amazon OpenSearch Service Instance"
and product.get("attributes", {}).get("operation", None)
!= "DirectQueryAmazonS3GDCOCU"
):
attributes = product["attributes"]

# map the region
Expand Down

0 comments on commit bca29ce

Please sign in to comment.