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

0

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.

// AWS SDK IVS Load
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 ago250 views
1 Answer
1
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:

https://docs.aws.amazon.com/ivs/latest/userguide/getting-started-iam-permissions.html

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