Kinesis Video updateMediaStorageConfiguration AccessDeniedException (403)

0

I am utilizing the aws-sdk (v2.1289.0) on a Node server to set up video related features for an application. I am using the KinesisVideo class (aws-sdk/clients/kinesisvideo). I am able to successfully create channels and streams, but when I try to run updateMediaStorageConfiguration I get an AccessDeniedException. The exact error reads: AccessDeniedException: The account id XXXXX is not allowed to access the resources.

The relevant code:

        kinesisVideoClient.updateMediaStorageConfiguration({
            ChannelARN: channel.ChannelARN,
            MediaStorageConfiguration: {
                Status: 'ENABLED',
                StreamARN: stream.StreamARN,
            },
        }, (err, data) => {
            if(err) console.log('error', err)
        })

ChannelARN and StreamARN are both defined. It doesn't appear to be a permissions issue as even with admin access to all services, the error still occurs. I am wondering what I can do to troubleshoot. The same error also occurs when using describeMediaStorageConfiguration.

질문됨 일 년 전397회 조회
1개 답변
1
수락된 답변

The new preview feature for WebRTC Ingestion, which is what you're configuring via update-media-storage-configuration, is currently only available in the us-west-2 region. Please confirm that your AWS region is being set to us-west-2. See the following resource for more details on how to set the region in your code: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-region.html

profile pictureAWS
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠