diff --git a/.travis.yml b/.travis.yml index 907edd1..9bcf7bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,10 @@ php: sudo: false +matrix: + allow_failures: + - php: hhvm + install: travis_retry composer install --no-interaction --prefer-source script: vendor/bin/phpunit diff --git a/config/aws.php b/config/aws.php index 03bb41a..8f86c66 100644 --- a/config/aws.php +++ b/config/aws.php @@ -16,10 +16,7 @@ | http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html | */ - 'credentials' => [ - 'key' => env('AWS_ACCESS_KEY_ID'), - 'secret' => env('AWS_SECRET_ACCESS_KEY'), - ], + 'region' => env('AWS_REGION', 'us-east-1'), 'version' => 'latest', 'ua_append' => [ diff --git a/src/AwsServiceProvider.php b/src/AwsServiceProvider.php index 3af207f..1eb8e73 100644 --- a/src/AwsServiceProvider.php +++ b/src/AwsServiceProvider.php @@ -41,7 +41,8 @@ public function boot() public function register() { $this->app->singleton('aws', function ($app) { - return new Sdk($app['config']->get('aws')); + $config = $app['config']->get('aws'); + return new Sdk($config); }); $this->app->alias('aws', 'Aws\Sdk');