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.