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,
],
]);
Can you check CloudTrail to see if there are any error message details?
The most probably issue is that the credentials you are using from the PHP script do not have the necessary IAM permissions. Can you check the documentation and your IAM credentials to make sure everything is correct?
https://docs.aws.amazon.com/ivs/latest/userguide/getting-started-iam-permissions.html
If you can send me your account ID (shartodd@twitch.tv) I can look further into this issue and check the logs for you.
@recursivecodes The answer was helpful. Thank you. I applied the IAM rule you told me and it worked. And I also subscribed to @recursivecodes YouTube.
Great! And thank you! 🔥