require "config.php";
require __DIR__ . '/vendor/autoload.php';
$sdk = new Aws\Sdk([
'region' => 'us-east-1',
'version' => 'latest',
'credentials' => array(
'key' => $global_access_key,
'secret' => $global_secret_key,
),
]);
$dynamodb = $sdk->createDynamoDb();
$response = $dynamodb->getItem([
'TableName' => $global_table_name,
'Key' => [
'userid' => [ 'N' => '1' ]
]
]);
var_dump($response);
die;
when i try to run this code it gives the error which is defined as :
Fatal error: Uncaught exception 'Aws\DynamoDb\Exception\DynamoDbException' with message 'Error executing "GetItem" on "https://dynamodb.us-east-1.amazonaws.com"; AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in C:\wamp\www\practice\vendor\aws\aws-sdk-php\src\WrappedHttpHandler.php on line 159