[aws-lambda] Add automation (#166)

The purpose of this new script is to be alerted of new runtimes, while not making updates to the original product file (because release dates cannot be fetched from AWS documentation).
This commit is contained in:
Marc Wrobel
2023-11-23 22:02:51 +01:00
committed by GitHub
parent c555f7ad05
commit 2e83befe93
2 changed files with 64 additions and 0 deletions

View File

@@ -8,6 +8,13 @@ from os import path
USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0'
def load_product(product_name, pathname="website/products"):
"""Load the product's file frontmatter.
"""
with open(f"{pathname}/{product_name}.md", "r") as f:
return frontmatter.load(f)
def list_products(method, products_filter=None, pathname="website/products"):
"""Return a list of products that are using the same given update method.
"""