5.3 Test Lambda Function

Run the Lambda Function Test

  1. Go to the Lambda Function page for lambda-rds-to-s3 in your AWS Console.
  2. Click on Test.

img.png

  1. 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 format YYYY-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>"
         }

img.png

  1. Click Test.

  2. You have successfully run the test.

alt

  1. Go back to the S3 bucket fashion-landing-zone and check if data has been generated.

alt