Skip to content

Commit 66d9c4c

Browse files
authored
Merge pull request #176 from Kydybets/patch-1
Update services-iot.md
2 parents 91d09c4 + 4b76f79 commit 66d9c4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc_source/services-iot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ You need to grant permission for the AWS IoT service to invoke your Lambda funct
2424

2525
```
2626
$ aws lambda add-permission --function-name my-function \
27-
--statement-id iot-events --action "lambda:InvokeFunction" principal iotevents.amazonaws.com
27+
--statement-id iot-events --action "lambda:InvokeFunction" --principal iotevents.amazonaws.com
2828
{
2929
"Statement": "{\"Sid\":\"iot-events\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"iot.amazonaws.com\"},\"Action\":\"lambda:InvokeFunction\",\"Resource\":\"arn:aws:lambda:us-west-2:123456789012:function:my-function\"}"
3030
}
3131
```
3232

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

0 commit comments

Comments
 (0)