Reputation: 1120
Consider the following:
us-east-1:abc
)us-east-1:xyz
)I want the Cognito Users to be able to run
aws iot attach-policy --policy-name <policy-name> --target us-east-1:xyz
But ONLY ON this particular Identity Pool (this is fine, we have the ARN),
AND on their OWN "Identity Id", i.e us-east-1:xyz.
I want to set up the Authenticated Role for this Identity Pool such that when Users (after they get AWS Creds) attempt to do this action(iot:AttachPolicy
) it's only permitted on their own Identity ID.
For example:
- Effect: Allow
Action:
- iot:AttachPolicy
Resource:
- "${Some Placeholder that resolves to (Principal) User's Identity ID}"
- !GetAtt IoTCorePolicy.Arn
NOTE:
Sub
value.I am new to Identity Pools and am not finding the documentation relevant to my use case.
If you have any idea please let me know.
Upvotes: 0
Views: 26