1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor einem Jahr
- Wie veröffentliche ich MQTT-Nachrichten von meinem Gerät auf AWS IoT Core, wenn ich Python verwende?AWS OFFICIALAktualisiert vor 3 Jahren
In this way I created both IOT policy and IAM policy but it does not work. What else can I do?