Simple ActiveRecord MySQL adapter extensions to allow Rails to use AWS Aurora Serverless. Perfect if you are using Lamby to deploy your Rails applications to AWS Lambda.
Lamby: Simple Rails & AWS Lambda Integration using Rack.
Bug reports and pull requests are welcome on GitHub at https://github.com/customink/activerecord-aurora-serverless-adapter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Cloning the repo and running the tests locally is super easy assuming you have:
- Docker Installed
- AWS Account Configured
These commands will use Docker to setup a node runtime leveraging AWD CDK to deploy a Aurora Serverless stack. Note, you may be to use/set AWS_PROFILE
for the deploy command.
$ ./bin/bootstrap
$ export AASA_MASTER_USER=admin
$ export AASA_MASTER_PASS=supersecret
$ ./test/bin/deploy-aurora
The outputs of this deployed stack will containt an AASASecretArn
and a AASAAuroraClusterArn
value. Please place these into the local .env
file in the following format where {{ VALUE }}
is replaced.
AASA_SECRET_ARN={{ VALUE:AASASecretArn }}
AASA_RESOURCE_ARN={{ VALUE:AASAAuroraClusterArn }}
Finally, assuming you have your default AWS account setup with full access to your account, now you can run the tests. Again, AWS_PROFILE
can be used here and set in .env
file as needed.
$ ./bin/test
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Activerecord::Aurora::Serverless::Adapter project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.