Skip to content

Commit 7f3b443

Browse files
authored
Merge pull request #84 from yuyokk/patch-1
Update tutorial-env_cli.md
2 parents 27f8803 + 2a75d80 commit 7f3b443

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

doc_source/tutorial-env_cli.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,12 @@ The code sample below reads the environment variable of a Lambda function that r
1414

1515
1. Open a text editor and copy the following code:
1616

17-
```
18-
var AWS = require('aws-sdk');
19-
20-
exports.handler = function(event, context, callback) {
21-
22-
var bucketName = process.env.S3_BUCKET;
23-
callback(null, bucketName);
24-
}
25-
```
17+
```js
18+
exports.handler = function(event, context, callback) {
19+
var bucketName = process.env.S3_BUCKET;
20+
callback(null, bucketName);
21+
};
22+
```
2623

2724
1. Save the file as *index\.js*\.
2825

@@ -69,4 +66,4 @@ $ aws lambda update-function-configuration --function-name ReturnBucketName \
6966
--environment Variables={S3_BUCKET=Prod}
7067
```
7168

72-
Run the `aws lambda invoke` command again using the same parameters\. This time, the Lambda function will return the Amazon S3 bucket name as `Prod`\.
69+
Run the `aws lambda invoke` command again using the same parameters\. This time, the Lambda function will return the Amazon S3 bucket name as `Prod`\.

0 commit comments

Comments
 (0)