AWSary / AWSary-iOS

AWS Dictionary iOS App
13 stars 2 forks source link

Lambda - Check for new images #49

Open tigpt opened 1 year ago

tigpt commented 1 year ago

Create a lambda that automatically checks if there are new images by looking at oficial links:

https://aws.amazon.com/architecture/icons/ https://d1.awsstatic.com/webteam/architecture-icons/q1-2023/Asset-Package_01312023.d59bb3e1bf7860fb55d4d737779e7c6fce1e35ae.zip

tigpt commented 1 year ago

Maybe a POC will be:

  1. Event bridge to run once a week.
  2. Lambda python and beautiful soup to get https://aws.amazon.com/architecture/icons/ and check for the the latest url at XPath //*[@id="aws-page-content-main"]/div[4]/div[2]/a.
  3. Check last updated url from a DynamoDB table record, compare, if different send email to mail@awsary.com warning about new images using SES.
  4. Update dynamoDB with new value for future reference.
tigpt commented 1 year ago

Use https://github.com/terraform-aws-modules/terraform-aws-lambda and https://github.com/terraform-aws-modules/terraform-aws-dynamodb-table modules to create the infrastructure