AWS Cloud9 by Amazon Web Services

AWS Cloud9 by Amazon Web Services

Author:Amazon Web Services
Language: eng
Format: mobi
Publisher: Amazon Web Services
Published: 2020-09-15T00:00:00+00:00


Compare your results to the following:

For more information, see Step 2.2: Invoke the Lambda Function Manually and Verify Results, Logs, and Metrics in the AWS Lambda Developer Guide.

To upload the local version of any changed function code to the related remote version in Lambda, see Upload code for a Lambda function.

Invoke a Lambda function that uses environment variables

To invoke a Lambda function locally or remotely that uses environment variables, do one of the following.

Invoke a Lambda function locally with predefined environment variables and their values

Add the predefined environment variable definitions to the function's template.yaml file if they are not already there, and then run the Run Local command for that function from the Lambda section of the AWS Resources window.

For example, given the following Node.js function definition in a file named index.js:

exports.handler = (event, context, callback) => {



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.