AWS LAMBDA Tutorialinside the Lambda function are displayed in AWS CloudWatch when the AWS function executes. The logs syntax will vary from the langauge selected. For example in nodejs, it is console.log. This is the output To get the details from environment variables we need to use process.env as shown. Note that this syntax is for NodeJS runtime. var hostName = process.env.host; var userName = process.env.username; invoke --function hello AWS Lambda 180 The syntax of the invoke command is shown here: sls invoke --function hello This invoke command triggers0 码力 | 393 页 | 13.45 MB | 1 年前3
共 1 条
- 1













