rivernews / media-literacy

Exploring possibilities of technology empowering media literacy
1 stars 0 forks source link

(1/3) Create S3 landing page file trigger - invoke lambda - generate JSON #23

Closed rivernews closed 1 year ago

rivernews commented 2 years ago

Upstream: https://github.com/rivernews/media-literacy/issues/15#issuecomment-1221493722

POC

This is our very first time to leverage S3 trigger.

The EventBridge S3 notification could be useful: Object Created event type.

Then, we need to filter by path. The same article gave example of filtering (event schema here):

TDD

How to test?

  1. Manually upload a landing page html to S3 to trigger
  2. Observe the triggered lambda is executed.

Action

  1. [ ] Setup empty pipeline just to make sure the platform works.
rivernews commented 2 years ago

But first, we had to re-cap dev env, last PR

Then, we can get started on this task.

Directly work on this prev PR for our metadata JSON

rivernews commented 1 year ago

Do not merge into production yet, because some of the logic we may want to de-couple/couple.

rivernews commented 1 year ago

Commit https://github.com/rivernews/media-literacy/pull/28/commits/0f7ab882a693a569e9ba456894f55ded7d8ca30c achieved this task.