-
Hi :D I am working on a project that using aws iot and cognito. I wonder why we need to attach iot policies to both (cognito auth role and cognito identity id) If
Is there any risk that I attach AWSIoTDataAccess with * as resource to all authorized users but I limit them to use only their own resource on iot policy ?? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
one more question. I tried to create a user group on Cognito called group_A and then created an IAM role with this |
Beta Was this translation helpful? Give feedback.
-
I'm not sure exactly why you will need multiple policies, but it allows you have better control over what different users can do. I would only recommend using AWSiOTDataAccess with * for testing. They only need access to resources that you intend to use, all of IoT should be covered in that; but you might want to use other resources. And for the last question did you attach a policy to the IoT things? Hopefully I answered all of your questions, please let me know if you have any more or want more clarification. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
I'm not sure exactly why you will need multiple policies, but it allows you have better control over what different users can do. I would only recommend using AWSiOTDataAccess with * for testing. They only need access to resources that you intend to use, all of IoT should be covered in that; but you might want to use other resources. And for the last question did you attach a policy to the IoT things?
Hopefully I answered all of your questions, please let me know if you have any more or want more clarification.