diff --git a/examples/spring-boot3-simple/pom.xml b/examples/spring-boot3-simple/pom.xml index 4ce5dad7..ed723326 100644 --- a/examples/spring-boot3-simple/pom.xml +++ b/examples/spring-boot3-simple/pom.xml @@ -87,4 +87,22 @@ + + + awss3 + + + org.eclipse.store + afs-aws-s3 + ${project.version} + + + software.amazon.awssdk + s3 + 2.26.14 + + + + + diff --git a/examples/spring-boot3-simple/readme.md b/examples/spring-boot3-simple/readme.md index 9274697d..9c5cd1c0 100644 --- a/examples/spring-boot3-simple/readme.md +++ b/examples/spring-boot3-simple/readme.md @@ -67,3 +67,18 @@ curl --location --request POST 'http://localhost:8080/add' \ --header 'Content-Type: application/json' \ --data-raw '{great new joke}' ``` + +## Using Example with AWS S3 +We have prepared a sample configuration for using AWS S3. To use it, please follow these steps: +1. In the application-awss3.properties file, set the following properties: + + `org.eclipse.store.storage-directory=bucket/jokes_storage` + Replace bucket with your actual bucket name. +2. Build the application with the following command: +```shell +mvn -Pawss3 clean package +``` +3. Run the application with the following command: +```shell +java -jar -Dspring.profiles.active=awss3 target/spring-boot3-simple.jar +``` diff --git a/examples/spring-boot3-simple/src/main/resources/application-awss3.properties b/examples/spring-boot3-simple/src/main/resources/application-awss3.properties new file mode 100644 index 00000000..f860f53a --- /dev/null +++ b/examples/spring-boot3-simple/src/main/resources/application-awss3.properties @@ -0,0 +1,15 @@ +org.eclipse.store.auto-start=true +org.eclipse.store.root=org.microstream.spring.boot.example.simple.model.Root +org.eclipse.store.storage-directory=bucket/jokes_storage + +org.eclipse.store.storage-filesystem.aws.s3.credentials.type=default +org.eclipse.store.storage-filesystem.aws.s3.region=eu-central-1 +org.eclipse.store.storage-filesystem.target=aws.s3 + +org.eclipse.store.rest.enabled=true + + +springdoc.swagger-ui.try-it-out-enabled=true +springdoc.swagger-ui.url=/v3/api-docs + +vaadin.url-mapping=/store-console/*