diff --git a/samples/browser/custom_authorizer_connect/README.md b/samples/browser/custom_authorizer_connect/README.md index 91360e2e..2e75fb22 100644 --- a/samples/browser/custom_authorizer_connect/README.md +++ b/samples/browser/custom_authorizer_connect/README.md @@ -16,11 +16,30 @@ Your IoT Core Thing's [Policy](https://docs.aws.amazon.com/iot/latest/developerg "Statement": [ { "Effect": "Allow", - "Action": [ - "iot:Connect" - ], + "Action": "iot:Connect", "Resource": [ - "arn:aws:iot:region:account:client/test-*" + "arn:aws:iot:region:account:client/custom_authorizer_connect_sample*" + ] + }, + { + "Effect": "Allow", + "Action": "iot:Publish", + "Resource": [ + "arn:aws:iot:region:account:topic/test/topic" + ] + }, + { + "Effect": "Allow", + "Action": "iot:Subscribe", + "Resource": [ + "arn:aws:iot:region:account:topicfilter/test/topic" + ] + }, + { + "Effect": "Allow", + "Action": "iot:Receive", + "Resource": [ + "arn:aws:iot:region:account:topic/test/topic" ] } ] diff --git a/samples/node/custom_authorizer_connect/README.md b/samples/node/custom_authorizer_connect/README.md index b8276f49..1eb7f815 100644 --- a/samples/node/custom_authorizer_connect/README.md +++ b/samples/node/custom_authorizer_connect/README.md @@ -16,11 +16,30 @@ Your IoT Core Thing's [Policy](https://docs.aws.amazon.com/iot/latest/developerg "Statement": [ { "Effect": "Allow", - "Action": [ - "iot:Connect" - ], + "Action": "iot:Connect", "Resource": [ - "arn:aws:iot:region:account:client/test-*" + "arn:aws:iot:region:account:client/custom_authorizer_connect_sample*" + ] + }, + { + "Effect": "Allow", + "Action": "iot:Publish", + "Resource": [ + "arn:aws:iot:region:account:topic/test/topic" + ] + }, + { + "Effect": "Allow", + "Action": "iot:Subscribe", + "Resource": [ + "arn:aws:iot:region:account:topicfilter/test/topic" + ] + }, + { + "Effect": "Allow", + "Action": "iot:Receive", + "Resource": [ + "arn:aws:iot:region:account:topic/test/topic" ] } ]