aws的athena的使用-php
laravel自带支持aws的s3,故可以直接使用AthenaClient.
2_1先new AthenaClient,初始化参数,如key,secret :
$athena_client = new AthenaClient([ 'version' => 'latest', 'region' => env('AWS_DEFAULT_REGION'), 'credentials' => [ 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env([......]