AWS DynamoDB
<dependency>
<groupId>org.eclipse.store</groupId>
<artifactId>afs-aws-dynamodb</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>dynamodb</artifactId>
<version>2.17.272</version>
</dependency>
DynamoDbClient client = ...;
BlobStoreFileSystem fileSystem = BlobStoreFileSystem.New(
DynamoDbConnector.Caching(client)
);
EmbeddedStorage.start(fileSystem.ensureDirectoryPath("storage"));
Configuration
When using external configuration AWS DynamoDB can be set as follows.
# optional, enforces checks
storage-filesystem.target=aws.dynamodb
storage-filesystem.aws.dynamodb.credentials.type=static
storage-filesystem.aws.dynamodb.credentials.access-key-id=my-access-key-id
storage-filesystem.aws.dynamodb.credentials.secret-access-key=my-secret-access-key
storage-filesystem.aws.dynamodb.credentials.region=us-east-1
Supported properties
Property | Description | Type |
---|---|---|
endpoint-override |
The endpoint with which the SDK should communicate. |
String |
cache |
Defines if the DynamoDbConnector should use caching. |
Boolean |
region |
Configure the region with which the SDK should communicate. If this is not specified, the SDK will attempt to identify the endpoint automatically using the following logic:
|
String |
credentials.type |
The type of the credentials provider. Supported values are:
|
String |
credentials.access-key-id |
The access key id, used when "credentials.type" is "static". |
String |
credentials.secret-access-key |
The secret access key, used when "credentials.type" is "static". |
String |
Depending on the amount of data and transactions, charges may apply depending on service usage. Please check with your service provider for details. |