From 865145029f6471daa0ec10697754e77b82cb5123 Mon Sep 17 00:00:00 2001 From: Amol Date: Wed, 27 Jan 2021 22:28:24 +0530 Subject: [PATCH] Update with-sns-example.md corrected line number 110. SourceARN should have SNS arn and not that of lambda function. --- doc_source/with-sns-example.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_source/with-sns-example.md b/doc_source/with-sns-example.md index eac2ef44..6be99da0 100644 --- a/doc_source/with-sns-example.md +++ b/doc_source/with-sns-example.md @@ -107,7 +107,7 @@ $ aws lambda add-permission --function-name SNS-X-Account \ --principal sns.amazonaws.com --profile accountB { "Statement": "{\"Condition\":{\"ArnLike\":{\"AWS:SourceArn\": - \"arn:aws:lambda:us-east-2:12345678901B:function:SNS-X-Account\"}}, + \"arn:aws:sns:us-east-2:12345678901A:lambda-x-account\"}}, \"Action\":[\"lambda:InvokeFunction\"], \"Resource\":\"arn:aws:lambda:us-east-2:01234567891A:function:SNS-X-Account\", \"Effect\":\"Allow\",\"Principal\":{\"Service\":\"sns.amazonaws.com\"}, @@ -148,4 +148,4 @@ $ aws sns publish --message file://message.txt --subject Test \ This will return a message id with a unique identifier, indicating the message has been accepted by the Amazon SNS service\. Amazon SNS will then attempt to deliver it to the topic's subscribers\. Alternatively, you could supply a JSON string directly to the `message` parameter, but using a text file allows for line breaks in the message\. -To learn more about Amazon SNS, see [What is Amazon Simple Notification Service](https://docs.aws.amazon.com/sns/latest/dg/)\. \ No newline at end of file +To learn more about Amazon SNS, see [What is Amazon Simple Notification Service](https://docs.aws.amazon.com/sns/latest/dg/)\.