This project shows the integration of a Java application and AWS Secrets Manager with scheduled secret rotation for Amazon Aurora DSQL.
-
Create an Amazon Aurora DSQL cluster, we are using AWS region
us-east-1
for this example -
Execute the schema.sql on the newly created Amazon Aurora DSQL cluster
-
The project has been built and tested using below configurations on
x86
architecturea. Java -
v17.0.14
and Gradle -v8.13
# Install SDKMAN - https://sdkman.io/install/ curl -s "https://get.sdkman.io" | bash sdk install java 17.0.14-amzn sdk install gradle 8.13
b. Python -
v3.13
# Install pyenv curl https://pyenv.run | bash # Install Python 3.13 pyenv install 3.13 pyenv global 3.13
c. AWS CDK -
v2.1006.0
# Install NVM curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash # Install Node LTS nvm install --lts # Install AWS CDK npm install -g [email protected]
d. Install
curl
andjq
sudo dnf install curl jq
e. Install Docker for building containers
f. Install AWS CLI
- Refer the CDK infrastructure stack to set up secret rotation and store the credentials in AWS Secrets Manager for Amazon Aurora DSQL
- Refer the demo application to build and test REST APIs interacting with your Amazon Aurora DSQL using
curl
commands
- Shutdown the locally running Spring Boot application
- Delete the CDK infrastructure stack
- Delete the Amazon Aurora DSQL cluster
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.