1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hi.
You can limit the Topic a user can subscribe/publish to using the variable cognito-identity.amazonaws.com:sub
in the IoT Core policy. Something like this.
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"iot:Connect"
],
"Resource": [
"arn:aws:iot:<REGION>:<ACCOUNT_ID>:client/${cognito-identity.amazonaws.com:sub}"
],
"Effect": "Allow"
}
}
To connect you use temporary IAM credentials retrieved via the identity pool.
See AWS Documentation and this blog example
Contenus pertinents
- demandé il y a un mois
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a un an
In this way I created both IOT policy and IAM policy but it does not work. What else can I do?