2015-03-31 92 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'選項