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/)\.