With the 3.106.0 release, sessions via DynamoDB are no longer working. Using this code:
$dynamoDb = new \Aws\DynamoDb\DynamoDbClient([
'region' => 'us-east-1',
'version' => '2012-08-10',
]);
$sessionHandler = \Aws\DynamoDb\SessionHandler::fromClient($dynamoDb, ['table_name' => 'php_sessions']);
$sessionHandler->register();
session_start()
The SDK generates the following error:
Notice: Undefined index: default in <path>/vendor/aws/aws-sdk-php/src/Credentials/CredentialProvider.php on line 358
This worked up until today's release.
@edillingham
Thanks for raising this issue. We'll get this resolved.
@edillingham
This fix will go out with the next release of the SDK.
Thank you!!