When creating ivs RecordingConfiguration using sdk for php, the created configuration throws an error.


hello? I am using SDK PHP and created a recording configuration with the following code. However, the generated configuration is failing to use it because of an error. I wonder what could be the cause. Does anyone know?

note. If you create it directly in the AWS console, it will be created normally. Same ap-northeast-2 for both AWS console and SDK regions.

require 'aws/aws-autoloader.php';    
use Aws\IVS\IVSClient;

$client = new IVSClient([
      'version' => 'latest',
      'region' => 'ap-northeast-2',
      'credentials' => [
          'key' => 'XXXXXXXXXXXX',
          'secret' => 'XXXXXXXXXXXXXXXXXXX',

  $resultS3 = $client->createRecordingConfiguration([      
      'destinationConfiguration' => [ 
          's3' => [
              'bucketName' => 'XXXXXXX',
      'name' => 'XXXXXXXXXXXXX',
      'recordingReconnectWindowSeconds' => 0,
      'thumbnailConfiguration' => [
          'recordingMode' => 'INTERVAL',
          'targetIntervalSeconds' => 60,

Enter image description here

asked a year ago264 views
1 Answer
Accepted Answer

Reposting from comments above for visibility for those coming from search engines.

This issue is caused by improper IAM permissions. Make sure your credentials are set up properly:


profile picture
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions