I am using AWS SDK to use the changeResourceRecordSets
feature of the SDK. As mentioned in this document Document I have created folders names "aws" and also ".aws" and placed the credential file inside them. I created these folders in /var/www/html/
as well as /var/www/html/admin
where my project is located.
I am trying to connect with the API like this
require 'vendor/autoload.php';
use Aws\Route53\Route53Client;
use Aws\Common\Credentials\Credentials;
$client = S3Client::factory(array(
'credentials' => array(
'key' => 'my key',
'secret' => 'my secret',
)
));
echo "<pre>";
print_r($client);
die();
It prints nothing, no error or nothing at all. Can any one please help me and let me know where I am making mistake.