forked from baopham/laravel-dynamodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dynamodb.php
64 lines (59 loc) · 2.23 KB
/
dynamodb.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?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,
],
],
];