Exposes the identity ID for the individual user so that we can upload to a specific users "folder" in S3. Also, changed the (formerly local) variable name from identityIdId to userIdentityId.
I updated the docs to show this use case since there are a few pitfalls I faced doing this e.g. assuming the ${cognito-identity.amazonaws.com:sub} policy parameter referred to the sub in the JWT token. Hopefully this save people some time.
Exposes the identity ID for the individual user so that we can upload to a specific users "folder" in S3. Also, changed the (formerly local) variable name from identityIdId to userIdentityId.
I updated the docs to show this use case since there are a few pitfalls I faced doing this e.g. assuming the ${cognito-identity.amazonaws.com:sub} policy parameter referred to the sub in the JWT token. Hopefully this save people some time.