You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Post-apply cleanup for the prod Aurora reader removal: drop the moved blocks, confirm the saving #1100
Two post-apply items owed by #1096 / PR #1099, which removed the prod Aurora
reader replica. Both are deliberately after the apply, so they could not be
done in that PR.
1. Delete the two moved blocks in infra/terraform/envs/prod/rds.tf
They were migration scaffolding — carrying the instances from the old
index-keyed addresses (prod[0], prod[1]) onto the name-keyed ones
(prod["er-prod-1"], prod["er-prod-2"]) so the shrink was a single destroy
rather than a destroy-both-and-recreate.
The apply has happened (main @ db3b4263, run 44006893237, apply (prod) success), so state is already at the new addresses and the
blocks are inert. Leaving them means the next reader has to work out whether
they are still load-bearing. Removing them should plan as 0/0/0.
Keep the explanatory comment above the resource — the reason the resource is
keyed by identifier rather than count is permanent, and is the thing that stops
someone reintroducing the hazard. Only the two moved blocks go.
2. Confirm the saving actually landed
Re-read the RDS line about three days after 2026-11-17 — long enough for
Cost Explorer to settle and for a clean daily figure:
Expected: a fall of ~$1.44/day (one instance at the 0.5 ACU floor,
0.5 x $0.12/ACU-hr x 24). RDS was running $4.45–4.63/day across both
environments before the change, so look for ~$3.0–3.2/day.
If it did not fall, that is the finding — it would mean the floor is not
what the ACU metric implied, and the ~$43/month figure on #1096 is wrong.
3. Optional, cosmetic
The for_each set now contains the single key "er-prod-2", which reads oddly
for the only instance in a cluster. Renaming it would destroy and recreate the
instance, so it is not worth doing on its own — fold it into any future
change that already recreates the instance, or leave it.
My commit body for the moved-block removal read "Does not close #1100: its other half is re-measuring the RDS cost line…". GitHub's closing-keyword parser matches close #1100 and ignores the negation, so the sentence disclaiming the closure performed it.
What #1108 actually did: deleted the two applied moved blocks from envs/prod/rds.tf. plan (prod) on that PR read No changes. Your infrastructure matches the configuration., which is the acceptance criterion — deleting an applied moved block is a no-op, and anything else would have meant the state did not move the way #1096 believed. apply (prod) then succeeded on main.
What remains, and why this stays open: re-measure the RDS cost line to confirm the ~$43/month saving was real rather than inferred from the ACU floor. Expect a ~$1.44/day fall against the pre-2026-11-17 baseline; earliest meaningful read is 2026-11-20, since Cost Explorer needs a few full days after the apply.
Baseline recorded so the confirmation read is a one-line comparison, and the earliest useful date is 2026-11-18, not 11-20 as I said earlier.
The sharper measurement: ACU-hours, not dollars
USE2-Aurora:ServerlessV2Usage carries ACU-hours as its UsageQuantity, which is a cleaner signal than the dollar total because it is unaffected by anything else on the RDS line:
day
ACU-hours
StorageIO ops
2026-11-12
36.85
741,404
2026-11-13
37.30
749,231
2026-11-14
36.52
742,331
2026-11-15
36.74
718,653
2026-11-16
21.43
447,316
Baseline: 36.85 ± 0.4 ACU-hours/day. Two instances at a min_capacity of 0.5 ACU contribute 24 ACU-hours/day of pure floor; removing one should remove 12 ACU-hours/day, which at $0.12/ACU-hour is the $1.44/day the estimate was built on. So the arithmetic is self-consistent.
Why 11-16 does not settle it
11-16 is the day the apply ran, so it is a partial day — and its StorageIOUsage also fell ~40% (447k vs ~740k), meaning that day had materially less workload as well. Its $2.66 total therefore conflates the reader removal with lower traffic and cannot be attributed to either.
2026-11-17 is the first full day with a single instance, and Cost Explorer had not posted it at the time of writing (it returned 0 for 11-17). It should be readable on 11-18.
Acceptance: ServerlessV2Usage quantity on a full post-11-17 day lands near 24.85 ACU-hours (36.85 − 12), i.e. a fall of ~12 ACU-h/day and ~$1.44/day. If it does not fall by roughly that, the ~$43/month figure is wrong and that is the finding — the likeliest alternative being that the reader was not actually sitting at its floor.
The cleanup half of this ticket shipped in #1108: the moved blocks are gone and plan (prod) read No changes, which is what proved they were inert.
Activity
athvin commentedon Nov 17, 2026
Reopened — closed by accident, not by completion.
My commit body for the
moved-block removal read "Does not close #1100: its other half is re-measuring the RDS cost line…". GitHub's closing-keyword parser matchesclose #1100and ignores the negation, so the sentence disclaiming the closure performed it.What #1108 actually did: deleted the two applied
movedblocks fromenvs/prod/rds.tf.plan (prod)on that PR readNo changes. Your infrastructure matches the configuration., which is the acceptance criterion — deleting an appliedmovedblock is a no-op, and anything else would have meant the state did not move the way #1096 believed.apply (prod)then succeeded onmain.What remains, and why this stays open: re-measure the RDS cost line to confirm the ~$43/month saving was real rather than inferred from the ACU floor. Expect a ~$1.44/day fall against the pre-2026-11-17 baseline; earliest meaningful read is 2026-11-20, since Cost Explorer needs a few full days after the apply.
AWS_PROFILE=er-builder aws ce get-cost-and-usage --region us-east-1 \ --time-period Start=2026-11-10,End=2026-11-24 --granularity DAILY \ --metrics UnblendedCost --group-by Type=DIMENSION,Key=SERVICE \ --filter '{"Dimensions":{"Key":"SERVICE","Values":["Amazon Relational Database Service"]}}'If it does not fall, the ~$43/month figure is wrong and that is the finding.
athvin commentedon Nov 17, 2026
Baseline recorded so the confirmation read is a one-line comparison, and the earliest useful date is 2026-11-18, not 11-20 as I said earlier.
The sharper measurement: ACU-hours, not dollars
USE2-Aurora:ServerlessV2Usagecarries ACU-hours as itsUsageQuantity, which is a cleaner signal than the dollar total because it is unaffected by anything else on the RDS line:Baseline: 36.85 ± 0.4 ACU-hours/day. Two instances at a
min_capacityof 0.5 ACU contribute 24 ACU-hours/day of pure floor; removing one should remove 12 ACU-hours/day, which at $0.12/ACU-hour is the $1.44/day the estimate was built on. So the arithmetic is self-consistent.Why 11-16 does not settle it
11-16 is the day the apply ran, so it is a partial day — and its
StorageIOUsagealso fell ~40% (447k vs ~740k), meaning that day had materially less workload as well. Its $2.66 total therefore conflates the reader removal with lower traffic and cannot be attributed to either.2026-11-17 is the first full day with a single instance, and Cost Explorer had not posted it at the time of writing (it returned
0for 11-17). It should be readable on 11-18.The read
AWS_PROFILE=er-builder aws ce get-cost-and-usage --region us-east-1 \ --time-period Start=2026-11-12,End=2026-11-20 --granularity DAILY \ --metrics UnblendedCost UsageQuantity \ --filter '{"Dimensions":{"Key":"SERVICE","Values":["Amazon Relational Database Service"]}}' \ --group-by Type=DIMENSION,Key=USAGE_TYPEAcceptance:
ServerlessV2Usagequantity on a full post-11-17 day lands near 24.85 ACU-hours (36.85 − 12), i.e. a fall of ~12 ACU-h/day and ~$1.44/day. If it does not fall by roughly that, the ~$43/month figure is wrong and that is the finding — the likeliest alternative being that the reader was not actually sitting at its floor.The cleanup half of this ticket shipped in #1108: the
movedblocks are gone andplan (prod)readNo changes, which is what proved they were inert.