Hello World for Lambda & QLDB
May 15, 2021
If you’re looking for a simple Hello World to get started with Lambda and QLDB this is it.
Step 1: Create an IAM role:
Step 2: Create and deploy this Lambda function
Lambda code is here: https://github.com/mayosmith/QLDBLambdaHelloWorld
QLDB driver is here: https://github.com/awslabs/amazon-qldb-driver-nodejs
How to add the driver to Lambda is here: https://www.youtube.com/watch?v=RnFowJ130pc
Step 3: Attach the IAM role to the Lambda function
Step 4: Create a QLDB ledger called helloworld
Step 5: Create a table called ‘greeting’
Step 6: Insert a record
Step 7: Run the Lambda and give yourself a pat on the back