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.

gefragt vor einem Jahr396 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen