AWS S3
<dependency>
<groupId>one.microstream</groupId>
<artifactId>microstream-afs-aws-s3</artifactId>
<version>07.01.00-MS-GA</version>
</dependency>
S3Client client = ...;
BlobStoreFileSystem fileSystem = BlobStoreFileSystem.New(
S3Connector.Caching(client)
);
EmbeddedStorage.start(fileSystem.ensureDirectoryPath("microstream_storage"));
Configuration
When using external configuration AWS S3 can be set as follows.
storage-filesystem.aws.s3.credentials.type=static
storage-filesystem.aws.s3.credentials.access-key-id=my-access-key-id
storage-filesystem.aws.s3.credentials.secret-acces-key=my-secret-access-key
storage-filesystem.aws.s3.credentials.region=us-east-1
Supported properties
Property | Description |
---|---|
endpoint-override |
The endpoint with which the SDK should communicate. |
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:
|
credentials.type |
The type of the credentials provider. Supported values are:
|
credentials.access-key-id |
The access key id, used when "credentials.type" is "static". |
credentials.secret-access-key |
The secret access key, used when "credentials.type" is "static". |