From ede9859bb3db2dac41c3299f9a8e0711b31e86d6 Mon Sep 17 00:00:00 2001 From: Namit Saxena Date: Mon, 21 Mar 2022 11:21:24 +0530 Subject: [PATCH] Update with-s3-example.md In the Event JSON (Heading: Test in the console, Point: 2. iv), for the key "arn", the value "example-bucket" was written. Ideally, it should be "my-s3-bucket" because "my-s3-bucket" is the value for the bucket name. Also, in the test event JSON template that is provided in the "Configure test event" menu on lambda function's page, test/key is written as "test%2Fkey". So, updated that as well. --- doc_source/with-s3-example.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc_source/with-s3-example.md b/doc_source/with-s3-example.md index 6eb4fcf1..098bf115 100755 --- a/doc_source/with-s3-example.md +++ b/doc_source/with-s3-example.md @@ -164,7 +164,7 @@ Invoke the Lambda function manually using sample Amazon S3 event data\. 1. For **Event name**, enter a name for the test event\. For example, **mys3testevent**\. - 1. In the test event JSON, replace the S3 bucket name \(`example-bucket`\) and object key \(`test/key`\) with your bucket name and test file name\. Your test event should look similar to the following: + 1. In the test event JSON, replace the S3 bucket name \(`example-bucket`\) and object key \(`test%2Fkey`\) with your bucket name and test file name (that you uploaded in your bucket)\. Your test event should look similar to the following: ``` { @@ -193,7 +193,7 @@ Invoke the Lambda function manually using sample Amazon S3 event data\. "ownerIdentity": { "principalId": "EXAMPLE" }, - "arn": "arn:aws:s3:::example-bucket" + "arn": "arn:aws:s3:::my-s3-bucket" }, "object": { "key": "HappyFace.jpg", @@ -297,4 +297,4 @@ You can now delete the resources that you created for this tutorial, unless you ## Next steps -Try the more advanced tutorial\. In this tutorial, the S3 trigger invokes a function to [create a thumbnail image](with-s3-tutorial.md) for each image file that is uploaded to your S3 bucket\. This tutorial requires a moderate level of AWS and Lambda domain knowledge\. You use the AWS Command Line Interface \(AWS CLI\) to create resources, and you create a \.zip file archive deployment package for your function and its dependencies\. \ No newline at end of file +Try the more advanced tutorial\. In this tutorial, the S3 trigger invokes a function to [create a thumbnail image](with-s3-tutorial.md) for each image file that is uploaded to your S3 bucket\. This tutorial requires a moderate level of AWS and Lambda domain knowledge\. You use the AWS Command Line Interface \(AWS CLI\) to create resources, and you create a \.zip file archive deployment package for your function and its dependencies\.