65 lines
2.2 KiB
PHP
65 lines
2.2 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Default DynamoDb Connection Name
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may specify which of the DynamoDb connections below you wish
|
|
| to use as your default connection for all DynamoDb work.
|
|
*/
|
|
|
|
'default' => env('DYNAMODB_CONNECTION', 'aws'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| DynamoDb Connections
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here are each of the DynamoDb connections setup for your application.
|
|
|
|
|
| Most of the connection's config will be fed directly to AwsClient
|
|
| constructor http://docs.aws.amazon.com/aws-sdk-php/v3/api/class-Aws.AwsClient.html#___construct
|
|
*/
|
|
|
|
'connections' => [
|
|
'aws' => [
|
|
'credentials' => [
|
|
'key' => env('DYNAMODB_KEY'),
|
|
'secret' => env('DYNAMODB_SECRET'),
|
|
// If using as an assumed IAM role, you can also use the `token` parameter
|
|
'token' => env('AWS_SESSION_TOKEN'),
|
|
],
|
|
'region' => env('DYNAMODB_REGION'),
|
|
// if true, it will use Laravel Log.
|
|
// For advanced options, see http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html
|
|
'debug' => env('DYNAMODB_DEBUG'),
|
|
],
|
|
'aws_iam_role' => [
|
|
'region' => env('DYNAMODB_REGION'),
|
|
'debug' => true,
|
|
],
|
|
'local' => [
|
|
'credentials' => [
|
|
'key' => 'dynamodb_local',
|
|
'secret' => 'secret',
|
|
],
|
|
'region' => 'stub',
|
|
// see http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html
|
|
'endpoint' => env('DYNAMODB_LOCAL_ENDPOINT'),
|
|
'debug' => true,
|
|
],
|
|
'test' => [
|
|
'credentials' => [
|
|
'key' => 'dynamodb_local',
|
|
'secret' => 'secret',
|
|
],
|
|
'region' => 'test',
|
|
'endpoint' => env('DYNAMODB_LOCAL_ENDPOINT'),
|
|
'debug' => true,
|
|
],
|
|
],
|
|
];
|