php - Credentials profile file not being recognized by AWS SDK -


i recieving empty objects key/secret while using aws credentials files

[credentials:protected] => aws\common\credentials\credentials object (     [key:protected] =>      [secret:protected] =>      [token:protected] =>      [ttd:protected] => 1 ) 

as as

[service] => sqs [base_url] => https://sqs.us-east-1.amazonaws.com [key] =>  [secret] =>  [token] =>  [token.ttd] =>  [credentials.cache] =>  [credentials.cache.key] =>  [credentials.client] =>  [client.backoff] => guzzle\plugin\backoff\backoffplugin object ......... 

the code using extremely straight forward...

class foo {     private sqsclient = null;      public function __construct()     {         $this->sqsclient = sqsclient::factory([             'profile' => 'default',             'region'  => 'us-east-1',         ]);          header('content-type: text/plain'); print_r($this->sqsclient); die;     } }  $sqs = new foo(); 

credentials config files both located in ~/.aws/{config,credentials}

config

[default] output = json region = us-east-1 

credentials

[default] aws_access_key_id = xxxxxxxxxxxx aws_secret_access_key = xxxxxxxxxxxx 

why aren't these being read in correctly? using laravel 5.0. composer slice follows

"require": {     "laravel/framework": "5.0.*",     "laravel/installer": "~1.2",     "aws/aws-sdk-php-laravel": "~2.0",     "aws/aws-sdk-php": "2.8.*" }, 

issue due file permissions on ~/.aws/credentials being owned root not user


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -