AWS Document DB integration with spring data mongodb repository.
-DsslKeyStore=PATH TO SSL KEYSTORE
Pass the property above to VM Options, or when running project: java -jar target/*.jar -DsslKeyStore=PATH TO SSL KEYSTORE
./generateKeyStore-linux.sh
./generateKeyStore-macos.sh
The command above will generate new keystore from rds-combined-ca-bundle.pem, the keystore file will be saved default in sslKeyStore
After the step above, you were able to run the project with spring boot.
mvn clean install
java -jar target/*.jar -DsslKeyStore=PATH TO KEYSTORE
We use JIB to build and deploy docker image to ECR or ACR.
<extraDirectories>
<paths>
<path>sslKeyStore</path>
</paths>
</extraDirectories>
<container>
<jvmFlags>
<jvmFlag>-DsslKeyStore=/rds-truststore.jks</jvmFlag>
</jvmFlags>
</container>
You can set up Jenkins and helm chart to run the docker image in AWS EKS cluster.