5.3 Test Lambda Function
Run the Lambda Function Test
- Go to the Lambda Function page for
lambda-rds-to-s3
in your AWS Console. - Click on Test.
- Because the Lambda function is designed to run once per day at the start of the next day (i.e., at 00:01 the following day), you need to add an Event JSON with
DATE_EXECUTION
set to the date you are running the lab, in the formatYYYY-MM-DD
. For example: “2025-04-17”.- In the Test section:
- Select Create new event
- Enter a name for the event, e.g.,
test
- Use the following Event JSON:
{ "DATE_EXECUTION": "<Date of workshop execution>" }
- In the Test section:
Click Test.
You have successfully run the test.
- Go back to the S3 bucket
fashion-landing-zone
and check if data has been generated.