Skip to content

Instantly share code, notes, and snippets.

@churnd
Last active February 27, 2023 14:57
Show Gist options
  • Save churnd/10e2feccf394d4ce44e8f36f21e86615 to your computer and use it in GitHub Desktop.
Save churnd/10e2feccf394d4ce44e8f36f21e86615 to your computer and use it in GitHub Desktop.
Rundeck Aurora MySQL Serverless Driver

This took me some time to figure out so writing it down for posterity.

Setting up Rundeck in AWS running on Amazon Linux 2 using RPM install: https://docs.rundeck.com/docs/administration/install/linux-rpm.html

JRE runtime using AWS Corretto 8: https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/amazon-linux-install.html

DB Backend using Aurora MySQL Serverless v2. Create rundeck user/pass.

MySQL JDBC Driver using AWS MySQL JDBC Driver: https://github.com/awslabs/aws-mysql-jdbc

Download latest driver & put in /var/lib/rundeck/lib (lib needs to be created). Do not put it in /var/lib/rundeck/libext, it will not work there.

Edit /etc/rundeck/rundeck-config.properties:

...
dataSource.url = jdbc:mysql:aws://<rds-serverless-url>:3306/rundeck
dataSource.username = <db_username>
dataSource.password = <db_password>
dataSource.driverClassName = software.aws.rds.jdbc.mysql.Driver
...

(above snippet assumes your DB is named rundeck)

Start rundeck up: systemctl start rundeckd.service. Everything should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment