Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. {
  2. "Sid": "Stream",
  3. "Effect": "Allow",
  4. "Action": [
  5. "kinesisvideoarchivedmedia:GetHLSStreamingSessionURL",
  6. "kinesisvideo:GetDataEndpoint"
  7. ],
  8. "Resource": "arn:aws:kinesisvideo:us-west-2:XXXXXXXXXXXX:stream/<stream-name>/<stream-id>"
  9. }
  10.  
  11. AccessDeniedException: User: arn:aws:sts::XXXXXXXXXXXX:assumed-role/<role>/CognitoIdentityCredentials is not authorized to perform: kinesisvideo:GetDataEndpoint on resource: <resource-name>
  12.  
  13. AWS.config.region = 'us-west-2';AWS.config.credentials = new AWS.CognitoIdentityCredentials({
  14. IdentityPoolId: <identity-pool>,
  15. });
  16.  
  17. AWS.config.credentials.get(function (err, data) {
  18. if (!err) {
  19. id = AWS.config.credentials.identityId;
  20. accessKey = AWS.config.credentials.accessKeyId;
  21. secretKey = AWS.config.credentials.secretAccessKey;
  22. token = AWS.config.credentials.sessionToken;
  23. }
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement