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