Skip to content

fix: rightsize db instance#106

Open
infracost-autofix[bot] wants to merge 1 commit intomasterfrom
infracost-fix-20250523-065128
Open

fix: rightsize db instance#106
infracost-autofix[bot] wants to merge 1 commit intomasterfrom
infracost-fix-20250523-065128

Conversation

@infracost-autofix
Copy link
Copy Markdown

@infracost-autofix infracost-autofix Bot commented May 23, 2025

💰 Infracost opened this pull request as part of the following campaign:


Policy: AWS RDS - consider rightsizing recommendation from AWS AWS Compute Optimizer and Cost Optimization Hub analyzes your resources’ configuration and utilization metrics to provide rightsizing recommendations. These are based on resource utilization metrics Amazon CloudWatch for the last 14 days, or 3 months if you opted into "Enhanced recommendations", see https://docs.aws.amazon.com/compute-optimizer/latest/ug/what-is-compute-optimizer.html for details. This policy maps the recommendation to the infrastructure code that requires action.
Potential savings: $1,489/yr
Risk: Medium Depending on the size selected, changing the instance class may impact query performance.
Deployment details: requires downtime, see AWS docs for details

The DB instance is upgraded in-place which can lead to service interruptions. The downtime depends on the configuration of your DB instance.

If you are using a single DB instance you can minimize the downtime by enabling blue/green updates. If you have Multi-AZ enabled, the secondary instance is upgraded first, after which a failover is performed and then the new secondary (former primary) instance is upgraded. The DB instance is unavailable during the failover time (60 - 120 seconds).

If you are using an RDS cluster, for minimal downtime you can update a read replica first and then manually fail over so it is promoted to the primary instance. Terraform does not handle rolling updates for RDS clusters natively, so you will need to ensure you roll out each instance individually.


Next steps:
✅ Deploy this change before the campaign deadline: June 31
💬 Doesn't apply? Close the PR with a comment
🛠️ Needs changes? Check out the branch to rebase or adjust

@infracost infracost deleted a comment from CLAassistant May 23, 2025
@infracost infracost deleted a comment from CLAassistant May 23, 2025
@infracost infracost deleted a comment from CLAassistant May 30, 2025
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant