2015-03-31 91 views

回答

0

Laravel实例化一个SqsClienthere,通过选项从app/config/queue.php

看起来您感兴趣的是'profile'选项here

use Aws\Sqs\SqsClient; 

$client = SqsClient::factory(array(
    'profile' => '<profile in your aws credentials file>', 
    'region' => '<region name>' 
)); 

在我看来,你应该能够在您的queue config

'sqs' => [ 
    'driver' => 'sqs', 
    'profile' => '/path/to/your/credeitials/profile/here', 
    'queue' => 'your-queue-url', 
    'region' => 'us-east-1', 
], 
设置 'profile'选项