RDS Parameter Group Deployer
An AWS CloudOps agent skill that provisions RDS DB parameter groups
and DB cluster parameter groups with correct production defaults.
The skill walks the operator through a 9-step provisioning
procedure, explains why each default matters, and emits a
READY_TO_DEPLOY checklist verifying every configuration item.
Quick navigation
| Need |
Section |
| What MUST be in the response |
"STRICT output contract" |
| Why the provisioning order matters |
"Reasoning framework" |
| What to verify before provisioning |
"Prerequisites" |
| The ordered provisioning steps |
"Deployment procedure" |
| Common silent-failure pitfalls |
"NEVER" |
| Choosing family, parameters, ApplyMethod |
"Expert heuristic" |
| Workload-specific defaults |
"Workload matrix" |
| 2024-2026 feature changes |
"Recent AWS features" |
| Deep CLI sequences |
references/deployment-cli-commands.md |
| PostgreSQL/MySQL/Aurora tuning reference |
references/database-tuning-guide.md |
Activation keywords
create RDS parameter group, DB parameter group, DB parameter group
family, DB cluster parameter group, postgres parameter group,
mysql parameter group, aurora parameter group, static vs dynamic
parameters, ApplyMethod immediate, pending-reboot, shared_buffers,
work_mem, wal_buffers, checkpoint_completion_target,
max_connections, innodb_buffer_pool_size, slow_query_log,
long_query_time, aurora_enable_repl_bin_log_filter,
aurora serverless v2, RDS parameter tuning, ModifyDBParameterGroup,
ModifyDBClusterParameterGroup.
STRICT output contract
When this skill is invoked with an RDS parameter group provisioning
request (group name, family, engine, parameter list, or a partial
existing configuration), the agent MUST respond with the
READY_TO_DEPLOY checklist defined in "Output format" using the
literal all-caps labels GROUP:, VERDICT:, CHECKLIST:, and
VERIFICATION_COMMANDS:. Do NOT preface the checklist with prose,
headings, or disclaimers — emit the block as the first lines of
the response.
Required output structure
GROUP: <parameter-group-name> — the parameter group being
provisioned.
VERDICT: READY_TO_DEPLOY OR VERDICT: PREREQUISITES_MISSING —
nothing else.
CHECKLIST: followed by indented lines, each prefixed with a
status marker ([✓], [✗], [OPTIONAL], [INPUT NEEDED]).
VERIFICATION_COMMANDS: followed by indented aws rds ...
commands the operator can run.
6 FORBIDDEN output patterns (each silently breaks automation)
- FORBIDDEN — prose preamble before
GROUP:. The first
non-empty line MUST be GROUP:. No "Here is your parameter
group checklist…".
- FORBIDDEN — markdown variants of the labels. Write
VERDICT:, not **VERDICT:**, ### Verdict, Verdict =, or
\VERDICT``. The labels are case-sensitive all-caps keywords.
- FORBIDDEN — swapping verdict tokens. The verdict is exactly
READY_TO_DEPLOY or PREREQUISITES_MISSING — not "ready",
"missing", "BLOCKED", "OK", or "needs review".
- FORBIDDEN — omitting
VERIFICATION_COMMANDS:. Even when
the verdict is PREREQUISITES_MISSING, include the commands
the operator needs to verify the gaps.
- FORBIDDEN — extra sections after
VERIFICATION_COMMANDS:.
The checklist block is the entire response. Put deeper
explanation in references/ files, not after the block.
- FORBIDDEN — status marker drift. Use only
[✓], [✗],
[OPTIONAL], [INPUT NEEDED]. Do not invent [?], [!],
[WARN], or emoji markers.
Perfect example (copy the shape exactly)
GROUP: payments-pg15-params
VERDICT: READY_TO_DEPLOY
CHECKLIST:
[✓] Family — postgres15
[✓] Type — DBParameterGroup
[✓] max_connections — 200 (dynamic, immediate)
[✓] shared_buffers — {6GB} (static, PENDING REBOOT required)
[✓] work_mem — 8MB (dynamic, immediate)
[✓] wal_buffers — 16MB (dynamic, immediate)
[✓] checkpoint_completion_target — 0.9 (dynamic, immediate)
[✓] Association — DB instance payments-db-pg15 (pending reboot for static params)
[✓] Tags — Environment=production, Application=payments
VERIFICATION_COMMANDS:
aws rds describe-db-parameters --db-parameter-group-name payments-pg15-params
aws rds describe-db-instances --db-instance-identifier payments-db-pg15
aws rds describe-pending-maintenance-actions --db-instance-identifier payments-db-pg15
Reasoning framework (why the provisioning order matters)
RDS parameter group provisioning has family, static-vs-dynamic,
and association constraints that make the procedure non-trivial.
Applying configurations in the wrong order causes parameters that
silently don't take effect, unnecessary reboots, or Aurora cluster
disconnects:
Family FIRST — the DB parameter group family is immutable.
The family (postgres15, mysql8.0, aurora-postgresql15,
sqlserver-se-15.00, oracle-ee-19) determines which
parameters are available and their defaults. The family MUST
match the DB engine version. A postgres14 parameter group
cannot be associated with a postgres15 instance. The family
CANNOT be changed after creation — you must create a new group.
DBParameterGroup vs DBClusterParameterGroup — two types.
A DBParameterGroup applies to individual DB instances. A
DBClusterParameterGroup applies to all instances in an Aurora
cluster (and is the ONLY type accepted by Aurora clusters).
Regular RDS (non-Aurora) uses DBParameterGroup only. Aurora
uses BOTH — the cluster parameter group sets cluster-level
defaults, and each instance can override via its own
DBParameterGroup.
Moved verbatim to references/advanced-patterns.md — load on demand.
Prerequisites (verify before deployment)
| Prerequisite |
Why it matters |
How to verify |
| DB engine and version |
The parameter group family MUST match the engine version. postgres15 ≠ postgres14. |
aws rds describe-db-instances --db-instance-identifier <id> |
| Parameter group family |
Derived from the engine version. Immutable after creation. |
aws rds describe-db-engine-versions --engine postgres --query 'DBEngineVersions[].DBParameterGroupFamily' |
| DB instance or cluster identifier (for association) |
The parameter group must be associated with an existing instance or cluster. |
aws rds describe-db-instances / aws rds describe-db-clusters |
| Parameter data types |
Each parameter has a DataType (string, integer, boolean) and AllowedValues. Setting the wrong type fails at ModifyDBParameterGroup time. |
aws rds describe-db-parameters --db-parameter-group-name <family-default> |
| Static vs dynamic awareness |
Static parameters require a reboot. Plan reboot windows accordingly. |
DescribeDBParameters — check ApplyType: static |
| Aurora cluster type (if Aurora) |
Aurora Serverless v2 uses ServerlessV2ScalingConfiguration, not parameter values, for capacity. Parameter group tuning complements the ACU range. |
aws rds describe-db-clusters --db-cluster-identifier <id> |
| IAM permissions |
Caller needs rds:CreateDBParameterGroup, rds:ModifyDBParameterGroup, rds:ModifyDBInstance or rds:ModifyDBCluster. |
aws sts get-caller-identity |
Deployment procedure (apply in order)
Step 1: Family selection
The parameter group family is determined by the DB engine and
version. It is immutable after creation.
Moved verbatim to references/advanced-patterns.md — load on demand.
Step 2: DBParameterGroup vs DBClusterParameterGroup
| Type |
Used by |
Scope |
DBParameterGroup |
RDS instances, Aurora instance-level overrides |
Single DB instance |
DBClusterParameterGroup |
Aurora clusters ONLY |
All instances in an Aurora cluster |
Rule: if the target is an Aurora cluster, create a
DBClusterParameterGroup. If the target is a regular RDS instance,
create a DBParameterGroup. Aurora clusters can use BOTH — cluster
group for cluster-level defaults, instance group for overrides.
Step 3: Static vs dynamic parameters
Every RDS parameter has an ApplyType of either static or
dynamic:
- Dynamic — the parameter takes effect immediately (for
ApplyMethod: immediate) or at the next connection. No reboot
required.
- Static — the parameter requires a DB instance reboot to take
effect.
ApplyMethod is always pending-reboot regardless of
what you specify.
Moved verbatim to references/deployment-cli-commands.md — load on demand.
Moved verbatim to references/database-tuning-guide.md — load on demand.
Step 4: ApplyMethod (immediate vs pending-reboot)
The ApplyMethod controls when a parameter change takes effect:
Moved verbatim to references/deployment-cli-commands.md — load on demand.
| ApplyMethod |
Effect |
Works for |
immediate |
Applies as soon as possible (typically within seconds for dynamic params) |
Dynamic parameters only |
pending-reboot |
Applies after the next DB instance reboot |
Static AND dynamic parameters |
Rule: always use immediate for dynamic parameters (unless you
want to batch changes at the next maintenance window). Always use
pending-reboot for static parameters (it is the only option, but
explicitly stating it documents the reboot requirement).
Setting ApplyMethod: immediate on a static parameter does NOT
force immediate application. RDS silently treats it as
pending-reboot. This is a common source of confusion.
Step 5: Common PostgreSQL tuning parameters
Moved verbatim to references/database-tuning-guide.md — load on demand.
Step 6: Common MySQL tuning parameters
Moved verbatim to references/database-tuning-guide.md — load on demand.
Step 7: Aurora-specific parameters
Moved verbatim to references/database-tuning-guide.md — load on demand.
Step 8: Aurora Serverless v2 capacity
Moved verbatim to references/database-tuning-guide.md — load on demand.
Step 9: Create + associate + apply
Moved verbatim to references/deployment-cli-commands.md — load on demand.
For Aurora clusters, use create-db-cluster-parameter-group /
modify-db-cluster-parameter-group / modify-db-cluster.
Workload matrix
| Workload |
Engine |
Key parameters |
Notes |
| OLTP (high-throughput) |
PostgreSQL |
shared_buffers=25%, work_mem=8MB, max_connections=200, checkpoint_completion_target=0.9 |
Use RDS Proxy for connection pooling |
| Read-heavy analytics |
PostgreSQL |
work_mem=64MB, maintenance_work_mem=1GB, effective_cache_size=75%, random_page_cost=1.1 |
Higher work_mem for large sorts/hashes |
| MySQL web app |
MySQL |
innodb_buffer_pool_size=75%, max_connections=300, slow_query_log=1, long_query_time=1 |
Enable slow query logging in production |
| Aurora Serverless v2 |
Aurora PG/MySQL |
Use formula values ({DBInstanceClassMemory/N}), conservative work_mem |
Never set absolute memory values |
| Migration staging |
PostgreSQL |
Source DB's exact parameter values |
Match source to validate query plans |
| High-availability replica |
Aurora MySQL |
aurora_enable_repl_bin_log_filter=1, binlog_format=ROW |
ROW format for reliable replication |
Recent AWS features (2024-2026)
Moved verbatim to references/advanced-patterns.md — load on demand.
NEVER (anti-patterns)
NEVER create a parameter group with the wrong family. The family
is immutable. A postgres15 parameter group cannot attach to a
postgres14 instance. Always verify the engine version before
creating.
NEVER set ApplyMethod: immediate on a static parameter and
assume it will apply without a reboot. RDS silently treats it as
pending-reboot. Static parameters ALWAYS require a reboot.
Check ApplyType via DescribeDBParameters before setting.
NEVER set absolute memory values (shared_buffers = 6GB) on
Aurora Serverless v2. The instance class changes dynamically
with ACU scaling — an absolute value tuned for 16 ACU causes OOM
at 2 ACU. Always use {DBInstanceClassMemory/N} formula syntax.
NEVER modify a production DB parameter group without planning a
reboot window for static parameters. Static parameters (like
shared_buffers, max_connections on some engines) require a
reboot. Schedule during a maintenance window.
NEVER disable autovacuum on PostgreSQL in production. Without
autovacuum, dead tuples accumulate, bloat increases, and
performance degrades. Tune autovacuum settings
(autovacuum_naptime, autovacuum_vacuum_threshold) instead.
NEVER exceed max_connections beyond what the instance class can
handle. Each connection consumes memory (thread stack + work_mem +
sort buffers). Formula: (RAM - shared_buffers) / (work_mem × 2)
gives a safe ceiling. Use RDS Proxy or PgBouncer for pooling.
NEVER set innodb_flush_log_at_trx_commit=0 or sync_binlog=0
in production if data durability matters. These settings trade
crash safety for throughput — you can lose committed transactions
on a crash. Use 1 for both unless you explicitly accept the risk.
NEVER change a parameter group on an Aurora cluster without
understanding that the DBClusterParameterGroup applies to ALL
instances. Instance-level overrides via DBParameterGroup can
conflict — test the interaction in staging.
NEVER forget to associate the parameter group with the DB
instance after creating it. Creating the group alone has no
effect. Call ModifyDBInstance or ModifyDBCluster.
NEVER deviate from the checklist output format. Substituting
Verdict / **VERDICT** / ### Verdict: for the literal
VERDICT: label silently breaks downstream deployment pipelines
and assertion-based evals.
Expert heuristic — choosing family, parameters, and ApplyMethod
Family — match the engine version exactly: the family is
<engine><major-version> (e.g., postgres15, mysql8.0). For
Aurora, prefix with aurora- (e.g., aurora-postgresql15). Use
DescribeDBEngineVersions to find the family for a specific engine
version. When in doubt, check the existing default group name
(default.postgres15).
Parameters — start with memory and connections, then planner:
the highest-impact parameters are shared_buffers /
innodb_buffer_pool_size (25-75% of RAM), max_connections
(scale with instance class), work_mem (4-16MB per query), and
planner hints (effective_cache_size, random_page_cost). These
have more impact than micro-tuning dozens of minor parameters.
ApplyMethod — immediate for dynamic, pending-reboot for static:
always check the parameter's ApplyType before setting
ApplyMethod. Dynamic + immediate = no reboot. Static + any
ApplyMethod = reboot required. When changing multiple parameters,
batch them in one ModifyDBParameterGroup call — it applies
atomically and minimizes reboot windows.
Aurora — use DBClusterParameterGroup: Aurora clusters require
a cluster parameter group. Instance-level DBParameterGroups are
optional overrides. Set cluster-level parameters (like
aurora_enable_repl_bin_log_filter) in the cluster group. Set
instance-specific tuning (like work_mem) in the instance group.
Serverless v2 — formula values only: never set absolute memory
values. Use {DBInstanceClassMemory/N} for all memory-related
parameters. The formula adapts as the ACU scales. Set
max_connections based on the MAX capacity, not the minimum.
Reboot planning — always flag static changes: when the
checklist includes any [✓] item with (static, PENDING REBOOT required), call out the reboot requirement in the checklist.
Static parameter changes are a no-op until the instance reboots.
Schedule during a maintenance window for production.
Pre-flight safety checks (run before any provisioning CLI)
Confirm the DB engine and version:
aws rds describe-db-instances --db-instance-identifier <id> \
--query 'DBInstances[].{Engine:Engine,EngineVersion:EngineVersion}'
Confirm the parameter group family matches the engine:
aws rds describe-db-engine-versions --engine postgres \
--query 'DBEngineVersions[].{Version:EngineVersion,Family:DBParameterGroupFamily}'
Confirm parameter data types and allowed values:
aws rds describe-db-parameters --db-parameter-group-name default.postgres15 \
--query 'Parameters[?ParameterName==`shared_buffers`]'
Confirm the DB instance or cluster exists:
aws rds describe-db-instances --db-instance-identifier <id>
aws rds describe-db-clusters --db-cluster-identifier <id>
For Aurora Serverless v2, confirm the scaling configuration:
aws rds describe-db-clusters --db-cluster-identifier <id> \
--query 'DBClusters[].ServerlessV2ScalingConfigurationInfo'
For existing parameter groups, capture current values for rollback:
aws rds describe-db-parameters --db-parameter-group-name <name> \
--query 'Parameters[?Source!=`engine-default`]' \
> /tmp/<name>-backup.json
Output format — MANDATORY literal labels
When invoked with a parameter group provisioning request, your
ENTIRE response MUST be the checklist block below. The labels are
case-sensitive all-caps keywords — write them EXACTLY as shown.
Do NOT write a preamble. Start with GROUP: and stop after the
VERIFICATION_COMMANDS: block.
GROUP: <parameter-group-name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
CHECKLIST:
[✓] Family — <postgres15 | mysql8.0 | aurora-postgresql15 | ...>
[✓] Type — <DBParameterGroup | DBClusterParameterGroup>
[✓] <parameter-name> — <value> (<dynamic|static>, <immediate|pending-reboot>)
[✓] ... (repeat for each parameter)
[✓] Association — <db-instance-id | db-cluster-id | pending>
[✓] Reboot required — <yes (static params changed) | no (dynamic only)>
[✓] Tags — <key=value pairs>
VERIFICATION_COMMANDS:
aws rds describe-db-parameters --db-parameter-group-name <name>
aws rds describe-db-instances --db-instance-identifier <id>
aws rds describe-pending-maintenance-actions --db-instance-identifier <id>
Status marker semantics:
[✓] — configuration is applied and verified.
[✗] — configuration is NOT applied or is misconfigured. Cite
the gap.
[OPTIONAL] — recommended but not required for the workload type.
[INPUT NEEDED] — a prerequisite value is missing (engine
version, DB instance ID, parameter group family) and the operator
must provide it before provisioning can proceed.
PREREQUISITES_MISSING verdict: if any REQUIRED prerequisite is
missing (DB engine version to determine the family, DB instance
identifier for association), the verdict is
PREREQUISITES_MISSING with each gap listed. The checklist shows
the target configuration with [INPUT NEEDED] or [✗] for unmet
prerequisites.
Edge-case handling
Moved verbatim to references/advanced-patterns.md — load on demand.
References (load on demand)
- references/deployment-cli-commands.md — static/dynamic parameter check, ApplyMethod payload, and the full create + modify + associate + reboot CLI sequence.
- references/database-tuning-guide.md — static/dynamic parameter tables, PostgreSQL/MySQL/Aurora tuning tables, and Aurora Serverless v2 capacity interactions.
- references/advanced-patterns.md — reasoning-framework constraints, family selection tables, recent AWS features, edge-case handling.
Domain
AWS CloudOps / RDS Database Parameter Group Provisioning.
AWS documentation
References
references/deployment-cli-commands.md — full copy-pasteable CLI
command sequence for all 9 provisioning steps, including parameter
group creation, parameter modification (static and dynamic),
association with DB instances and Aurora clusters, reboot
procedures, Aurora Serverless v2 capacity configuration, and
Terraform aws_db_parameter_group /
aws_rds_cluster_parameter_group resource equivalents.
references/database-tuning-guide.md — deep reference on
PostgreSQL and MySQL parameter tuning (memory sizing formulas,
connection pooling, autovacuum, InnoDB internals), Aurora-specific
parameters, Aurora Serverless v2 capacity interactions, and
static-vs-dynamic parameter classification.
1---2name: rds-parameter-group-deployer3description: 'Provisions RDS DB parameter groups with correct production defaults: family selection (postgres15, mysql8.0, aurora-postgresql15), static vs dynamic parameters (static requires DB instance reboot), ApplyMethod (immediate vs pending-reboot), PostgreSQL tuning (max_connections, shared_buffers, work_mem, wal_buffers, checkpoint_completion_target), MySQL tuning (innodb_buffer_pool_size, max_connections, slow_query_log), Aurora-specific parameters, Aurora Serverless v2 capacity parameters, and parameter group association with DB instances and clusters. Emits a READY_TO_DEPLOY checklist. Use when creating a DB parameter group, tuning PostgreSQL/MySQL parameters, configuring Aurora Serverless v2, or associating a parameter group with a DB instance. Triggers: create RDS parameter group, DB parameter group family, postgres parameter group, mysql parameter group, Aurora parameter group, static vs dynamic parameters, shared_buffers, innodb_buffer_pool_size, max_connections, ApplyMethod, pending-reboot.'4license: Apache-2.05compatibility: 'Requires an LLM agent runtime (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with rds access. Works with Terraform aws_db_parameter_group / aws_rds_cluster_parameter_group resources, CloudFormation AWS::RDS::DBParameterGroup / AWS::RDS::DBClusterParameterGroup, and SAM templates.'6metadata:7 source: https://skillmd.com/skills/jhkchan/rds-parameter-group-deployer8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '1'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Databases15 task_type: deploy16 skill_class: capability17 lifecycle_status: active18 verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING19 version: 0.1.020 author: Jacky Chan — AWS Community Builder21 tags: aws, rds, aurora, databases, cloudops, deploy, parameter-group, postgres, mysql22 dependencies: aws-orchestrator23 keywords: aws, rds, aurora, databases, cloudops, deploy, provisioning, parameter-group, postgres, mysql, tuning, static-dynamic, apply-method, aurora-serverless-v224 when_to_use: Invoke when the user wants to create a new RDS DB parameter group or DB cluster parameter group, tune PostgreSQL or MySQL parameters, configure Aurora-specific parameters, set up Aurora Serverless v2 capacity settings, or associate a parameter group with a DB instance or Aurora cluster. Do NOT invoke for option groups (use the option-group skill), for DB instance class changes (use the instance-deployer skill), or for RDS Proxy configuration.25---2627# RDS Parameter Group Deployer2829An AWS CloudOps agent skill that provisions RDS DB parameter groups30and DB cluster parameter groups with correct production defaults.31The skill walks the operator through a 9-step provisioning32procedure, explains why each default matters, and emits a33READY_TO_DEPLOY checklist verifying every configuration item.3435## Quick navigation3637| Need | Section |38|---|---|39| What MUST be in the response | "STRICT output contract" |40| Why the provisioning order matters | "Reasoning framework" |41| What to verify before provisioning | "Prerequisites" |42| The ordered provisioning steps | "Deployment procedure" |43| Common silent-failure pitfalls | "NEVER" |44| Choosing family, parameters, ApplyMethod | "Expert heuristic" |45| Workload-specific defaults | "Workload matrix" |46| 2024-2026 feature changes | "Recent AWS features" |47| Deep CLI sequences | `references/deployment-cli-commands.md` |48| PostgreSQL/MySQL/Aurora tuning reference | `references/database-tuning-guide.md` |4950## Activation keywords5152create RDS parameter group, DB parameter group, DB parameter group53family, DB cluster parameter group, postgres parameter group,54mysql parameter group, aurora parameter group, static vs dynamic55parameters, ApplyMethod immediate, pending-reboot, shared_buffers,56work_mem, wal_buffers, checkpoint_completion_target,57max_connections, innodb_buffer_pool_size, slow_query_log,58long_query_time, aurora_enable_repl_bin_log_filter,59aurora serverless v2, RDS parameter tuning, ModifyDBParameterGroup,60ModifyDBClusterParameterGroup.6162## STRICT output contract6364When this skill is invoked with an RDS parameter group provisioning65request (group name, family, engine, parameter list, or a partial66existing configuration), the agent MUST respond with the67READY_TO_DEPLOY checklist defined in "Output format" using the68literal all-caps labels `GROUP:`, `VERDICT:`, `CHECKLIST:`, and69`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,70headings, or disclaimers — emit the block as the first lines of71the response.7273### Required output structure74751. `GROUP: <parameter-group-name>` — the parameter group being76 provisioned.772. `VERDICT: READY_TO_DEPLOY` OR `VERDICT: PREREQUISITES_MISSING` —78 nothing else.793. `CHECKLIST:` followed by indented lines, each prefixed with a80 status marker (`[✓]`, `[✗]`, `[OPTIONAL]`, `[INPUT NEEDED]`).814. `VERIFICATION_COMMANDS:` followed by indented `aws rds ...`82 commands the operator can run.8384### 6 FORBIDDEN output patterns (each silently breaks automation)85861. **FORBIDDEN — prose preamble before `GROUP:`.** The first87 non-empty line MUST be `GROUP:`. No "Here is your parameter88 group checklist…".892. **FORBIDDEN — markdown variants of the labels.** Write90 `VERDICT:`, not `**VERDICT:**`, `### Verdict`, `Verdict =`, or91 `\`VERDICT\``. The labels are case-sensitive all-caps keywords.923. **FORBIDDEN — swapping verdict tokens.** The verdict is exactly93 `READY_TO_DEPLOY` or `PREREQUISITES_MISSING` — not "ready",94 "missing", "BLOCKED", "OK", or "needs review".954. **FORBIDDEN — omitting `VERIFICATION_COMMANDS:`.** Even when96 the verdict is `PREREQUISITES_MISSING`, include the commands97 the operator needs to verify the gaps.985. **FORBIDDEN — extra sections after `VERIFICATION_COMMANDS:`.**99 The checklist block is the entire response. Put deeper100 explanation in `references/` files, not after the block.1016. **FORBIDDEN — status marker drift.** Use only `[✓]`, `[✗]`,102 `[OPTIONAL]`, `[INPUT NEEDED]`. Do not invent `[?]`, `[!]`,103 `[WARN]`, or emoji markers.104105### Perfect example (copy the shape exactly)106107```text108GROUP: payments-pg15-params109VERDICT: READY_TO_DEPLOY110CHECKLIST:111 [✓] Family — postgres15112 [✓] Type — DBParameterGroup113 [✓] max_connections — 200 (dynamic, immediate)114 [✓] shared_buffers — {6GB} (static, PENDING REBOOT required)115 [✓] work_mem — 8MB (dynamic, immediate)116 [✓] wal_buffers — 16MB (dynamic, immediate)117 [✓] checkpoint_completion_target — 0.9 (dynamic, immediate)118 [✓] Association — DB instance payments-db-pg15 (pending reboot for static params)119 [✓] Tags — Environment=production, Application=payments120VERIFICATION_COMMANDS:121 aws rds describe-db-parameters --db-parameter-group-name payments-pg15-params122 aws rds describe-db-instances --db-instance-identifier payments-db-pg15123 aws rds describe-pending-maintenance-actions --db-instance-identifier payments-db-pg15124```125126## Reasoning framework (why the provisioning order matters)127128RDS parameter group provisioning has **family, static-vs-dynamic,129and association constraints** that make the procedure non-trivial.130Applying configurations in the wrong order causes parameters that131silently don't take effect, unnecessary reboots, or Aurora cluster132disconnects:1331341. **Family FIRST — the DB parameter group family is immutable.**135 The family (`postgres15`, `mysql8.0`, `aurora-postgresql15`,136 `sqlserver-se-15.00`, `oracle-ee-19`) determines which137 parameters are available and their defaults. The family MUST138 match the DB engine version. A `postgres14` parameter group139 cannot be associated with a `postgres15` instance. The family140 CANNOT be changed after creation — you must create a new group.1411422. **DBParameterGroup vs DBClusterParameterGroup — two types.**143 A `DBParameterGroup` applies to individual DB instances. A144 `DBClusterParameterGroup` applies to all instances in an Aurora145 cluster (and is the ONLY type accepted by Aurora clusters).146 Regular RDS (non-Aurora) uses DBParameterGroup only. Aurora147 uses BOTH — the cluster parameter group sets cluster-level148 defaults, and each instance can override via its own149 DBParameterGroup.150151> Moved verbatim to [`references/advanced-patterns.md`](references/advanced-patterns.md) — load on demand.152153154## Prerequisites (verify before deployment)155156| Prerequisite | Why it matters | How to verify |157|---|---|---|158| **DB engine and version** | The parameter group family MUST match the engine version. `postgres15` ≠ `postgres14`. | `aws rds describe-db-instances --db-instance-identifier <id>` |159| **Parameter group family** | Derived from the engine version. Immutable after creation. | `aws rds describe-db-engine-versions --engine postgres --query 'DBEngineVersions[].DBParameterGroupFamily'` |160| **DB instance or cluster identifier** (for association) | The parameter group must be associated with an existing instance or cluster. | `aws rds describe-db-instances` / `aws rds describe-db-clusters` |161| **Parameter data types** | Each parameter has a `DataType` (string, integer, boolean) and `AllowedValues`. Setting the wrong type fails at ModifyDBParameterGroup time. | `aws rds describe-db-parameters --db-parameter-group-name <family-default>` |162| **Static vs dynamic awareness** | Static parameters require a reboot. Plan reboot windows accordingly. | `DescribeDBParameters` — check `ApplyType: static` |163| **Aurora cluster type** (if Aurora) | Aurora Serverless v2 uses `ServerlessV2ScalingConfiguration`, not parameter values, for capacity. Parameter group tuning complements the ACU range. | `aws rds describe-db-clusters --db-cluster-identifier <id>` |164| **IAM permissions** | Caller needs `rds:CreateDBParameterGroup`, `rds:ModifyDBParameterGroup`, `rds:ModifyDBInstance` or `rds:ModifyDBCluster`. | `aws sts get-caller-identity` |165166## Deployment procedure (apply in order)167168### Step 1: Family selection169170The parameter group family is determined by the DB engine and171version. It is immutable after creation.172173> Moved verbatim to [`references/advanced-patterns.md`](references/advanced-patterns.md) — load on demand.174175176### Step 2: DBParameterGroup vs DBClusterParameterGroup177178| Type | Used by | Scope |179|---|---|---|180| `DBParameterGroup` | RDS instances, Aurora instance-level overrides | Single DB instance |181| `DBClusterParameterGroup` | Aurora clusters ONLY | All instances in an Aurora cluster |182183**Rule:** if the target is an Aurora cluster, create a184`DBClusterParameterGroup`. If the target is a regular RDS instance,185create a `DBParameterGroup`. Aurora clusters can use BOTH — cluster186group for cluster-level defaults, instance group for overrides.187188### Step 3: Static vs dynamic parameters189190Every RDS parameter has an `ApplyType` of either `static` or191`dynamic`:192193- **Dynamic** — the parameter takes effect immediately (for194 `ApplyMethod: immediate`) or at the next connection. No reboot195 required.196- **Static** — the parameter requires a DB instance reboot to take197 effect. `ApplyMethod` is always `pending-reboot` regardless of198 what you specify.199200> Moved verbatim to [`references/deployment-cli-commands.md`](references/deployment-cli-commands.md) — load on demand.201202203> Moved verbatim to [`references/database-tuning-guide.md`](references/database-tuning-guide.md) — load on demand.204205206### Step 4: ApplyMethod (immediate vs pending-reboot)207208The `ApplyMethod` controls when a parameter change takes effect:209210> Moved verbatim to [`references/deployment-cli-commands.md`](references/deployment-cli-commands.md) — load on demand.211212213| ApplyMethod | Effect | Works for |214|---|---|---|215| `immediate` | Applies as soon as possible (typically within seconds for dynamic params) | Dynamic parameters only |216| `pending-reboot` | Applies after the next DB instance reboot | Static AND dynamic parameters |217218**Rule:** always use `immediate` for dynamic parameters (unless you219want to batch changes at the next maintenance window). Always use220`pending-reboot` for static parameters (it is the only option, but221explicitly stating it documents the reboot requirement).222223Setting `ApplyMethod: immediate` on a static parameter does NOT224force immediate application. RDS silently treats it as225`pending-reboot`. This is a common source of confusion.226227### Step 5: Common PostgreSQL tuning parameters228229> Moved verbatim to [`references/database-tuning-guide.md`](references/database-tuning-guide.md) — load on demand.230231232### Step 6: Common MySQL tuning parameters233234> Moved verbatim to [`references/database-tuning-guide.md`](references/database-tuning-guide.md) — load on demand.235236237### Step 7: Aurora-specific parameters238239> Moved verbatim to [`references/database-tuning-guide.md`](references/database-tuning-guide.md) — load on demand.240241242### Step 8: Aurora Serverless v2 capacity243244> Moved verbatim to [`references/database-tuning-guide.md`](references/database-tuning-guide.md) — load on demand.245246247### Step 9: Create + associate + apply248249> Moved verbatim to [`references/deployment-cli-commands.md`](references/deployment-cli-commands.md) — load on demand.250251252For Aurora clusters, use `create-db-cluster-parameter-group` /253`modify-db-cluster-parameter-group` / `modify-db-cluster`.254255## Workload matrix256257| Workload | Engine | Key parameters | Notes |258|---|---|---|---|259| OLTP (high-throughput) | PostgreSQL | `shared_buffers=25%`, `work_mem=8MB`, `max_connections=200`, `checkpoint_completion_target=0.9` | Use RDS Proxy for connection pooling |260| Read-heavy analytics | PostgreSQL | `work_mem=64MB`, `maintenance_work_mem=1GB`, `effective_cache_size=75%`, `random_page_cost=1.1` | Higher work_mem for large sorts/hashes |261| MySQL web app | MySQL | `innodb_buffer_pool_size=75%`, `max_connections=300`, `slow_query_log=1`, `long_query_time=1` | Enable slow query logging in production |262| Aurora Serverless v2 | Aurora PG/MySQL | Use formula values (`{DBInstanceClassMemory/N}`), conservative `work_mem` | Never set absolute memory values |263| Migration staging | PostgreSQL | Source DB's exact parameter values | Match source to validate query plans |264| High-availability replica | Aurora MySQL | `aurora_enable_repl_bin_log_filter=1`, `binlog_format=ROW` | ROW format for reliable replication |265266## Recent AWS features (2024-2026)267268> Moved verbatim to [`references/advanced-patterns.md`](references/advanced-patterns.md) — load on demand.269270271## NEVER (anti-patterns)272273- NEVER create a parameter group with the wrong family. The family274 is immutable. A `postgres15` parameter group cannot attach to a275 `postgres14` instance. Always verify the engine version before276 creating.277278- NEVER set `ApplyMethod: immediate` on a static parameter and279 assume it will apply without a reboot. RDS silently treats it as280 `pending-reboot`. Static parameters ALWAYS require a reboot.281 Check `ApplyType` via `DescribeDBParameters` before setting.282283- NEVER set absolute memory values (`shared_buffers = 6GB`) on284 Aurora Serverless v2. The instance class changes dynamically285 with ACU scaling — an absolute value tuned for 16 ACU causes OOM286 at 2 ACU. Always use `{DBInstanceClassMemory/N}` formula syntax.287288- NEVER modify a production DB parameter group without planning a289 reboot window for static parameters. Static parameters (like290 `shared_buffers`, `max_connections` on some engines) require a291 reboot. Schedule during a maintenance window.292293- NEVER disable `autovacuum` on PostgreSQL in production. Without294 autovacuum, dead tuples accumulate, bloat increases, and295 performance degrades. Tune autovacuum settings296 (`autovacuum_naptime`, `autovacuum_vacuum_threshold`) instead.297298- NEVER exceed `max_connections` beyond what the instance class can299 handle. Each connection consumes memory (thread stack + work_mem +300 sort buffers). Formula: `(RAM - shared_buffers) / (work_mem × 2)`301 gives a safe ceiling. Use RDS Proxy or PgBouncer for pooling.302303- NEVER set `innodb_flush_log_at_trx_commit=0` or `sync_binlog=0`304 in production if data durability matters. These settings trade305 crash safety for throughput — you can lose committed transactions306 on a crash. Use `1` for both unless you explicitly accept the risk.307308- NEVER change a parameter group on an Aurora cluster without309 understanding that the DBClusterParameterGroup applies to ALL310 instances. Instance-level overrides via DBParameterGroup can311 conflict — test the interaction in staging.312313- NEVER forget to associate the parameter group with the DB314 instance after creating it. Creating the group alone has no315 effect. Call `ModifyDBInstance` or `ModifyDBCluster`.316317- NEVER deviate from the checklist output format. Substituting318 `Verdict` / `**VERDICT**` / `### Verdict:` for the literal319 `VERDICT:` label silently breaks downstream deployment pipelines320 and assertion-based evals.321322## Expert heuristic — choosing family, parameters, and ApplyMethod323324**Family — match the engine version exactly:** the family is325`<engine><major-version>` (e.g., `postgres15`, `mysql8.0`). For326Aurora, prefix with `aurora-` (e.g., `aurora-postgresql15`). Use327`DescribeDBEngineVersions` to find the family for a specific engine328version. When in doubt, check the existing default group name329(`default.postgres15`).330331**Parameters — start with memory and connections, then planner:**332the highest-impact parameters are `shared_buffers` / 333`innodb_buffer_pool_size` (25-75% of RAM), `max_connections`334(scale with instance class), `work_mem` (4-16MB per query), and335planner hints (`effective_cache_size`, `random_page_cost`). These336have more impact than micro-tuning dozens of minor parameters.337338**ApplyMethod — immediate for dynamic, pending-reboot for static:**339always check the parameter's `ApplyType` before setting340`ApplyMethod`. Dynamic + immediate = no reboot. Static + any341`ApplyMethod` = reboot required. When changing multiple parameters,342batch them in one `ModifyDBParameterGroup` call — it applies343atomically and minimizes reboot windows.344345**Aurora — use DBClusterParameterGroup:** Aurora clusters require346a cluster parameter group. Instance-level DBParameterGroups are347optional overrides. Set cluster-level parameters (like348`aurora_enable_repl_bin_log_filter`) in the cluster group. Set349instance-specific tuning (like `work_mem`) in the instance group.350351**Serverless v2 — formula values only:** never set absolute memory352values. Use `{DBInstanceClassMemory/N}` for all memory-related353parameters. The formula adapts as the ACU scales. Set354`max_connections` based on the MAX capacity, not the minimum.355356**Reboot planning — always flag static changes:** when the357checklist includes any `[✓]` item with `(static, PENDING REBOOT358required)`, call out the reboot requirement in the checklist.359Static parameter changes are a no-op until the instance reboots.360Schedule during a maintenance window for production.361362## Pre-flight safety checks (run before any provisioning CLI)363364- **Confirm the DB engine and version:**365 ```bash366 aws rds describe-db-instances --db-instance-identifier <id> \367 --query 'DBInstances[].{Engine:Engine,EngineVersion:EngineVersion}'368 ```369370- **Confirm the parameter group family matches the engine:**371 ```bash372 aws rds describe-db-engine-versions --engine postgres \373 --query 'DBEngineVersions[].{Version:EngineVersion,Family:DBParameterGroupFamily}'374 ```375376- **Confirm parameter data types and allowed values:**377 ```bash378 aws rds describe-db-parameters --db-parameter-group-name default.postgres15 \379 --query 'Parameters[?ParameterName==`shared_buffers`]'380 ```381382- **Confirm the DB instance or cluster exists:**383 ```bash384 aws rds describe-db-instances --db-instance-identifier <id>385 aws rds describe-db-clusters --db-cluster-identifier <id>386 ```387388- **For Aurora Serverless v2, confirm the scaling configuration:**389 ```bash390 aws rds describe-db-clusters --db-cluster-identifier <id> \391 --query 'DBClusters[].ServerlessV2ScalingConfigurationInfo'392 ```393394- **For existing parameter groups, capture current values for rollback:**395 ```bash396 aws rds describe-db-parameters --db-parameter-group-name <name> \397 --query 'Parameters[?Source!=`engine-default`]' \398 > /tmp/<name>-backup.json399 ```400401## Output format — MANDATORY literal labels402403When invoked with a parameter group provisioning request, your404ENTIRE response MUST be the checklist block below. The labels are405**case-sensitive all-caps keywords** — write them EXACTLY as shown.406Do NOT write a preamble. Start with `GROUP:` and stop after the407`VERIFICATION_COMMANDS:` block.408409```text410GROUP: <parameter-group-name>411VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING412CHECKLIST:413 [✓] Family — <postgres15 | mysql8.0 | aurora-postgresql15 | ...>414 [✓] Type — <DBParameterGroup | DBClusterParameterGroup>415 [✓] <parameter-name> — <value> (<dynamic|static>, <immediate|pending-reboot>)416 [✓] ... (repeat for each parameter)417 [✓] Association — <db-instance-id | db-cluster-id | pending>418 [✓] Reboot required — <yes (static params changed) | no (dynamic only)>419 [✓] Tags — <key=value pairs>420VERIFICATION_COMMANDS:421 aws rds describe-db-parameters --db-parameter-group-name <name>422 aws rds describe-db-instances --db-instance-identifier <id>423 aws rds describe-pending-maintenance-actions --db-instance-identifier <id>424```425426**Status marker semantics:**427- `[✓]` — configuration is applied and verified.428- `[✗]` — configuration is NOT applied or is misconfigured. Cite429 the gap.430- `[OPTIONAL]` — recommended but not required for the workload type.431- `[INPUT NEEDED]` — a prerequisite value is missing (engine432 version, DB instance ID, parameter group family) and the operator433 must provide it before provisioning can proceed.434435**PREREQUISITES_MISSING verdict:** if any REQUIRED prerequisite is436missing (DB engine version to determine the family, DB instance437identifier for association), the verdict is438`PREREQUISITES_MISSING` with each gap listed. The checklist shows439the target configuration with `[INPUT NEEDED]` or `[✗]` for unmet440prerequisites.441442## Edge-case handling443444> Moved verbatim to [`references/advanced-patterns.md`](references/advanced-patterns.md) — load on demand.445446447## References (load on demand)448449- [references/deployment-cli-commands.md](references/deployment-cli-commands.md) — static/dynamic parameter check, ApplyMethod payload, and the full create + modify + associate + reboot CLI sequence.450- [references/database-tuning-guide.md](references/database-tuning-guide.md) — static/dynamic parameter tables, PostgreSQL/MySQL/Aurora tuning tables, and Aurora Serverless v2 capacity interactions.451- [references/advanced-patterns.md](references/advanced-patterns.md) — reasoning-framework constraints, family selection tables, recent AWS features, edge-case handling.452453## Domain454455AWS CloudOps / RDS Database Parameter Group Provisioning.456457## AWS documentation458459- **Amazon RDS User Guide** — https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html460- **RDS Parameter Groups** — https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithDBInstanceParamGroups.html461- **PostgreSQL Parameters on RDS** — https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.Parameters.html462- **MySQL Parameters on RDS** — https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.MySQL.CommonDBATasks.Parameters.html463- **Aurora Serverless v2** — https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.setting-capacity.html464- **RDS CLI Reference** — https://docs.aws.amazon.com/cli/latest/reference/rds/465466## References467468- `references/deployment-cli-commands.md` — full copy-pasteable CLI469 command sequence for all 9 provisioning steps, including parameter470 group creation, parameter modification (static and dynamic),471 association with DB instances and Aurora clusters, reboot472 procedures, Aurora Serverless v2 capacity configuration, and473 Terraform `aws_db_parameter_group` /474 `aws_rds_cluster_parameter_group` resource equivalents.475476- `references/database-tuning-guide.md` — deep reference on477 PostgreSQL and MySQL parameter tuning (memory sizing formulas,478 connection pooling, autovacuum, InnoDB internals), Aurora-specific479 parameters, Aurora Serverless v2 capacity interactions, and480 static-vs-dynamic parameter classification.