- Le plus récent
- Le plus de votes
- La plupart des commentaires
Edited by: 5:51 on May 15, 2021 9:21 AM
Edited by: 5:51 on May 15, 2021 11:13 AM
Anyone looking for a simple Hello World to get started with Lambda & QLDB here's a demo I put together:
https://mayoinmotion.medium.com/hello-world-for-lambda-qldb-e73353459d74
Edited by: 5:51 on May 16, 2021 5:48 AM
Hi John,
Glad that you figured this out! As for your questions,
1/ The second sentence of the QLDB Node.js Tutorial refers to AWS SDK for JavaScript API which is depreciated and comes with a note that says, "Note: You are viewing the documentation for an older major version of the AWS SDK for JavaScript (v2)."
Confirmed the issue. The Node.js sample app tutorial points to the latest version of the AWS SDK for JavaScript v2 API docs (https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/). I can see there is a note banner at the top that says v3 is now available, but our driver and sample app both still use v2.
2/ The third sentence of the QLDB Node.js Tutorial refers to the QLDB Driver Reference. We managed to import the driver into Lambda but its a time consuming exercise in environment variables, TypeScript, and NPM.
I can see that the video you linked uses the original npm init. I would recommend using AWS SAM (https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html) to quickly set up a Node.js 14.x project on AWS, which provides additional support for local debugging and testing, etc. You can run sam init and choose from a number of AWS app templates to get started.
3/ IAM role is mentioned zero times in step one and step two
Confirmed; we'll work on adding additional note about setting up IAM permissions.
At the meantime, setting up IAM permission is part of the steps in Accessing Amazon QLDB: https://docs.aws.amazon.com/qldb/latest/developerguide/accessing.html#setting-up-create-iam-user
We also have a dedicated page with more details on Identity and Access Management for Amazon QLDB if you're interested: https://docs.aws.amazon.com/qldb/latest/developerguide/security-iam.html
4/ Sample code in Step 2 is written in TS even though NodeJS is the runtime for AWS Lambda, and JavaScript is default language.
We have both Javascript and Typescript sample code in: https://docs.aws.amazon.com/qldb/latest/developerguide/driver-quickstart-nodejs.html#driver-quickstart-nodejs.step-2
Thank you for your feedback!
Edited by: aws-yijun on May 18, 2021 10:29 AM
Contenus pertinents
- demandé il y a 6 mois
- demandé il y a 7 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans