Skip to content

feat(aws): Allow stack configuration of Aurora RDS scaling#727

Merged
jyecusch merged 5 commits intomainfrom
feat/aws-aurora-scale-config
Feb 6, 2025
Merged

feat(aws): Allow stack configuration of Aurora RDS scaling#727
jyecusch merged 5 commits intomainfrom
feat/aws-aurora-scale-config

Conversation

@jyecusch
Copy link
Member

@jyecusch jyecusch commented Feb 4, 2025

This allows the following config to be added to stack files using the nitric/aws provider:

aurora-rds-cluster:
  min-capacity: 0
  max-capacity: 1
  seconds-until-auto-pause: 300

Which allows the scaling values to be modified from the defaults, including allowing auto-pause.

The engine version was bumped from 13.14 to 13.16, since 13.14 doesn't support pausing. This change may cause an outage for existing database clusters using the previous version (see: The AWS Docs for more details)

Upgrade Steps

A note when updating from a previous nitric provider version with an existing database cluster. You'll need to update first before adding auto-pause settings. The database engine version needs to be updated to support auto-pausing before the settings can be applied.

Here are the steps:

  1. Update the provider version in your stack file
  2. Run nitric up, this will update the database cluster version
  3. Edit the stack file to add auto-pause settings
  4. Run nitric up again, this time to apply the new settings

If this isn't done, you'll get this error when deploying Auto-pause isn't supported by engine version 13.14, please upgrade to a supported version first.

@codecov
Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.75%. Comparing base (137a528) to head (165f306).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #727   +/-   ##
=======================================
  Coverage   48.75%   48.75%           
=======================================
  Files          28       28           
  Lines        3546     3546           
=======================================
  Hits         1729     1729           
  Misses       1698     1698           
  Partials      119      119           
Flag Coverage Δ
aws 44.89% <ø> (ø)
azure 53.29% <ø> (ø)
core 60.76% <ø> (ø)
gcp 47.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jyecusch jyecusch merged commit 0ec5fa5 into main Feb 6, 2025
4 checks passed
@jyecusch jyecusch deleted the feat/aws-aurora-scale-config branch February 6, 2025 21:25
@nitric-bot
Copy link

🎉 This PR is included in version 1.17.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants