From 995561f71c5d014fa5970e4ebe0124fe18bbb6ea Mon Sep 17 00:00:00 2001 From: Tim Mattison Date: Tue, 2 Mar 2021 16:44:49 -0500 Subject: [PATCH] Fixed reference to iotevents.amazonaws.com that should be iot.amazonaws.com MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This code snippet references iotevents.amazonaws.com but should reference iot.amazonaws.com. This can be verified in the output JSON below the code that shows the service principal as “iot.amazonaws.com”. --- doc_source/services-iot.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_source/services-iot.md b/doc_source/services-iot.md index 66e2c48a..a1e3dfbf 100644 --- a/doc_source/services-iot.md +++ b/doc_source/services-iot.md @@ -24,7 +24,7 @@ You need to grant permission for the AWS IoT service to invoke your Lambda funct ``` aws lambda add-permission --function-name my-function \ ---statement-id iot-events --action "lambda:InvokeFunction" --principal iotevents.amazonaws.com +--statement-id iot-events --action "lambda:InvokeFunction" --principal iot.amazonaws.com ``` You should see the following output: @@ -35,4 +35,4 @@ You should see the following output: } ``` -For more information about how to use Lambda with AWS IoT, see [Creating an AWS Lambda rule](https://docs.aws.amazon.com/iot/latest/developerguide/iot-lambda-rule.html)\. \ No newline at end of file +For more information about how to use Lambda with AWS IoT, see [Creating an AWS Lambda rule](https://docs.aws.amazon.com/iot/latest/developerguide/iot-lambda-rule.html)\.