php - how can I use aws credentials file for laravel 5 -
is there way use laravel's sqs queue w/out putting access key , secret in config? ie: use aws credentials file?
laravel instantiates sqsclient here, passing through options app/config/queue.php.
it looks you're interested 'profile' option described here.
use aws\sqs\sqsclient; $client = sqsclient::factory(array( 'profile' => '<profile in aws credentials file>', 'region' => '<region name>' )); seems me should able set 'profile' option on queue config
'sqs' => [ 'driver' => 'sqs', 'profile' => '/path/to/your/credeitials/profile/here', 'queue' => 'your-queue-url', 'region' => 'us-east-1', ],
Comments
Post a Comment