Repository navigation
docs: document IAM permissions plan capture/deadlocks need on Aurora/RDS - #2698
Merged
Merged
Conversation
…ora/RDS Today's incident: pg_plan_capture and pg_deadlocks both failed on the entire Aurora fleet because the monitoring host's IAM role had zero RDS permissions. Neither collector's requirement (rds:DescribeDBClusters, rds:DescribeDBLogFiles, rds:DownloadDBLogFilePortion — reading the server log through the RDS control plane, since Aurora/RDS exposes no local log directory) was documented anywhere outside the collectors' own runtime error messages. Adds an IAM subsection under step 1 and a failure-modes table row so the next person recognizes this immediately instead of re-deriving it from source. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Reviewed. This is a docs-only change (no code touched), so the correctness/security/performance/parity checklist mostly doesn't apply — but I verified the factual claims against the actual Darling source since a runbook with a wrong IAM policy is worse than no runbook:
No issues found. The doc's IAM policy example uses wildcard resource ARNs ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
pg_plan_captureandpg_deadlocksboth failed on an entire Aurora fleet today because the monitoring host's IAM role had zero RDS permissions — and this requirement was documented nowhere except the collectors' own runtime error messages. Adding it todocs/postgres-first-target-runbook.mdso the next person (or the next fleet) doesn't have to re-derive it from source under time pressure.Changes
pg_monitorgrant, gives the exact IAM policy statement (rds:DescribeDBClusters,rds:DescribeDBLogFiles,rds:DownloadDBLogFilePortion), and clarifies self-managed Postgres doesn't need it at all (verified directly againstDarlingWorker's dispatch table — both collectors correctly fall back to the SQL-sidepg_read_file()path for non-Aurora/non-RDS targets).Docs-only change, no code touched.
🤖 Generated with Claude Code