Skip to content

Commit

Permalink
Update DynamoDB documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Jul 24, 2020
1 parent 206ccfb commit 0b494b2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions AwsDynamoDbKeyValue.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ The full connection string can be:
dynamodb://AKA12345678899:aaaaaaaaaaaaaaaaaaaaaaaaa@us-east-1/mytable
```

You can add any extra arguments supported by the DynamoDB api. You can get a full list here:
- https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-Aws.AwsClient.html#___construct

One of the most populars is the parameter `endpoint` where we can set a custom endpoint to access
an DynamoDB compatible interface.

An example can be:

```
s3://AKA12345678899:aaaaaaaaaaaaaaaaaaaaaaaaa@us-east-1/tablename?endpoint=http://localhost:8000
```


# Preparing to use DynamoDb

DynamoDb stores the information slightly different than a model dto structure.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ vendor/bin/phpunit testsdb/MongoDbDriverTest.php

You need setup your environment with:

- DYNAMODB_CONNECTION = "dynamodb://access_key:secret_key@region/bucketname"
- DYNAMODB_CONNECTION = "dynamodb://access_key:secret_key@region/tablename"

Once defined:

Expand Down

0 comments on commit 0b494b2

Please sign in to comment.