Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "Sid": "Stream",
- "Effect": "Allow",
- "Action": [
- "kinesisvideoarchivedmedia:GetHLSStreamingSessionURL",
- "kinesisvideo:GetDataEndpoint"
- ],
- "Resource": "arn:aws:kinesisvideo:us-west-2:XXXXXXXXXXXX:stream/<stream-name>/<stream-id>"
- }
- AccessDeniedException: User: arn:aws:sts::XXXXXXXXXXXX:assumed-role/<role>/CognitoIdentityCredentials is not authorized to perform: kinesisvideo:GetDataEndpoint on resource: <resource-name>
- AWS.config.region = 'us-west-2';AWS.config.credentials = new AWS.CognitoIdentityCredentials({
- IdentityPoolId: <identity-pool>,
- });
- AWS.config.credentials.get(function (err, data) {
- if (!err) {
- id = AWS.config.credentials.identityId;
- accessKey = AWS.config.credentials.accessKeyId;
- secretKey = AWS.config.credentials.secretAccessKey;
- token = AWS.config.credentials.sessionToken;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement