Skip to content

Commit

Permalink
Add db.serverless to neptune instance classes (#3009)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Jan 11, 2024
1 parent 6629605 commit 4dc004a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/update_specs_from_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ def get_rds_pricing():
return results


def get_results(service, product_families):
def get_results(service, product_families, default=None):
if default is None:
default = set()
results = {}
for page in get_paginator(service):
for price_item in page.get("PriceList", []):
Expand All @@ -263,7 +265,7 @@ def get_results(service, product_families):
):
results[
region_map[product.get("attributes").get("location")]
] = set()
] = default
results[region_map[product.get("attributes").get("location")]].add(
product.get("attributes").get("instanceType")
)
Expand Down Expand Up @@ -302,7 +304,7 @@ def main():
)
outputs = update_outputs(
"NeptuneInstanceClass",
get_results("AmazonNeptune", ["Database Instance"]),
get_results("AmazonNeptune", ["Database Instance"], default=set(["db.serverless"])),
outputs,
)
outputs = update_outputs(
Expand Down

0 comments on commit 4dc004a

Please sign in to comment.