redshift-serverless-deployer
Deploys Amazon Redshift Serverless with production-grade configuration: namespace creation (DB name, admin credentials, KMS encryption, IAM roles, VPC security groups), workgroup creation (base capacity RPU, subnet group, public access, enhanced VPC routing), usage limits (daily/monthly RPU caps, cost controls), Data API for query execution without persistent connections, query editor v2, scheduled and cross-Region snapshots for DR, and latest features (cross-Region snapshot copy, cost controls with usage thresholds, Secrets Manager integration, zero-ETL). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when creating a Redshift Serverless namespace or workgroup, validating a configuration, or generating deployment CLI and IaC templates. Triggers: Redshift Serverless, serverless data warehouse, RPU capacity, namespace, workgroup, Data API, cross-Region snapshots, usage limits, cost controls, query editor v2.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-24
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- redshift-serverless-deployer
- license
- Apache-2.0
- metadata
- { "tags": "aws, redshift, redshift-serverless, cloudops, deploy, analytics, namespace, workgroup", "phase": "1", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "Analytics", "version": "0.1.0", "keywords": "aws, redshift, redshift-serverless, cloudops, deploy, provisioning, analytics, data-warehouse, namespace, workgroup, rpu, data-api, cross-region-snapshots, usage-limits, cost-controls, kms-encryption", "task_type": "deploy", "complexity": "high", "entry_point": "false", "skill_class": "capability", "when_to_use": "Invoke when the user wants to create a new Redshift Serverless namespace or workgroup, deploy a serverless data warehouse, validate an existing Redshift Serverless configuration against best practices, generate deployment CLI commands or IaC templates, or troubleshoot a Redshift Serverless deployment failure caused by missing prerequisites (KMS key, security groups, subnet group, IAM roles). Do NOT invoke for provisioned Redshift clusters (use redshift-cluster-deployer), Athena (use athena-query-optimizer), or Aurora (use rds-instance-deployer).", "dependencies": "aws-orchestrator", "requires_llm": "true", "verdict_shape": "READY_TO_DEPLOY | PREREQUISITES_MISSING", "lifecycle_status": "active", "supports_pipeline": "true" }
- description
- Deploys Amazon Redshift Serverless with production-grade configuration: namespace creation (DB name, admin credentials, KMS encryption, IAM roles, VPC security groups), workgroup creation (base capacity RPU, subnet group, public access, enhanced VPC routing), usage limits (daily/monthly RPU caps, cost controls), Data API for query execution without persistent connections, query editor v2, scheduled and cross-Region snapshots for DR, and latest features (cross-Region snapshot copy, cost controls with usage thresholds, Secrets Manager integration, zero-ETL). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when creating a Redshift Serverless namespace or workgroup, validating a configuration, or generating deployment CLI and IaC templates. Triggers: Redshift Serverless, serverless data warehouse, RPU capacity, namespace, workgroup, Data API, cross-Region snapshots, usage limits, cost controls, query editor v2.
- compatibility
- Requires an LLM agent runtime (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with redshift-serverless, ec2, kms, iam, secretsmanager, and logs access. Works with Terraform aws_redshiftserverless_* resources, CloudFormation AWS::RedshiftServerless::* resources, and the AWS Console Redshift Serverless wizard.
02 资源文件 19
- 参考文档eval/test-cases.yaml7.8 KB
- 参考文档evals/baselines/cost-controls-usage-limits.md895 B
- 参考文档evals/baselines/cross-region-snapshots-dr.md867 B
- 参考文档evals/baselines/missing-kms-key.md943 B
- 参考文档evals/baselines/missing-security-group.md1020 B
- 参考文档evals/baselines/production-namespace-workgroup.md943 B
- 参考文档evals/eval_config.yaml1.7 KB
- 参考文档evals/evals.json14.1 KB
- 参考文档evals/prompts/cost-controls-usage-limits.md826 B
- 参考文档evals/prompts/cross-region-snapshots-dr.md897 B
- 参考文档evals/prompts/missing-kms-key.md758 B
- 参考文档evals/prompts/missing-security-group.md733 B
- 参考文档evals/prompts/production-namespace-workgroup.md973 B
- 参考文档example/README.md10.3 KB
- 参考文档references/advanced-patterns.md1.6 KB
- 参考文档references/cli-commands-and-iac.md17.0 KB
- 参考文档references/configuration-and-cost-guide.md14.5 KB
- 参考文档references/diagnostic-commands.md654 B
- 参考文档skill.usf.yaml4.4 KB
03 SKILL.md 正文
Redshift Serverless Deployer
An AWS CloudOps agent skill that deploys Amazon Redshift Serverless namespaces and workgroups with correct production defaults. 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 namespace-before-workgroup order matters | "Reasoning framework" |
| What to verify before deploying | "Prerequisites" |
| The ordered deployment steps | "Deployment procedure" |
| Common silent-failure pitfalls | "NEVER" |
| Workload-type decision matrix | "Workload matrix" |
| 2024-2026 feature changes | "Recent AWS features" |
| Deep CLI sequences | references/cli-commands-and-iac.md |
| Security, networking, cost controls, full NEVER | references/configuration-and-cost-guide.md |
STRICT output contract
When this skill is invoked with a Redshift Serverless deployment
request, the agent MUST respond with the READY_TO_DEPLOY checklist
defined in "Output format" using the literal all-caps labels
WORKGROUP:, VERDICT:, CHECKLIST:, and VERIFICATION_COMMANDS:.
Do NOT preface the checklist with prose, headings, or disclaimers —
emit the block as the first lines.
Required output structure
WORKGROUP: <workgroup-name>— the Redshift Serverless workgroup being deployed.VERDICT: READY_TO_DEPLOYORVERDICT: PREREQUISITES_MISSING.CHECKLIST:followed by indented lines with status markers ([✓],[✗],[OPTIONAL],[INPUT NEEDED]).VERIFICATION_COMMANDS:followed by indentedaws redshift-serverless ...commands.
FORBIDDEN output patterns
- No prose preamble before
WORKGROUP:— first non-empty line MUST beWORKGROUP:. - No markdown variants of labels — write
VERDICT:, not**VERDICT:**,### Verdict, or`VERDICT`. - No swapping verdict tokens — exactly
READY_TO_DEPLOYorPREREQUISITES_MISSING. - No omitting
VERIFICATION_COMMANDS:— include even when PREREQUISITES_MISSING. - No extra sections after
VERIFICATION_COMMANDS:— the checklist block is the entire response. - No status marker drift — use only
[✓],[✗],[OPTIONAL],[INPUT NEEDED].
Perfect example (copy the shape exactly)
WORKGROUP: analytics-wg-prod
VERDICT: READY_TO_DEPLOY
CHECKLIST:
[✓] Namespace — analytics-ns-prod, database dev, admin user admin
[✓] Admin credentials — stored in Secrets Manager secret arn:aws:secretsmanager:us-east-1:123456789012:secret:redshift/admin-XXX
[✓] KMS encryption — customer-managed key arn:aws:kms:us-east-1:123456789012:key/abc123 (encryption enabled)
[✓] IAM roles — sysid:aws-redshift arn:aws:iam::123456789012:role/RedshiftNSRole
[✓] VPC security groups — sg-redshift-prod (inbound 5439 from sg-analytics-app)
[✓] Workgroup — analytics-wg-prod, base capacity 128 RPU
[✓] Subnet group — redshift-subnet-group (3 subnets across us-east-1a/b/c)
[✓] Public access — disabled (private only)
[✓] Enhanced VPC routing — enabled (traffic stays in VPC)
[✓] Usage limits — daily 500 RPU-hours, monthly 12000 RPU-hour budget
[✓] Data API — enabled (query via execute-statement, no persistent connection)
[✓] Query editor v2 — associated (managed IAM policy)
[✓] Snapshots — automated every 8 hours, 7-day retention, cross-Region copy to us-west-2 with KMS key arn:aws:kms:us-west-2:123456789012:key/def456
[OPTIONAL] Concurrency scaling — enabled (auto-scaling beyond base RPU)
VERIFICATION_COMMANDS:
aws redshift-serverless describe-workgroup --workgroup-name analytics-wg-prod
aws redshift-serverless describe-namespace --namespace-name analytics-ns-prod
aws redshift-serverless list-usage-limits --usage-type serverless-compute
aws redshift-serverless describe-scheduled-actions
aws secretsmanager describe-secret --secret-id redshift/admin
aws kms describe-key --key-id alias/redshift-prod
Reasoning framework (why the deployment order matters)
- Namespace FIRST — a namespace is the database container. It owns the database name, admin credentials, KMS key, IAM roles, VPC security groups, and snapshot schedule. Without a namespace you cannot create a workgroup. The create-namespace call is the only place where admin credentials, KMS, and IAM roles are set.
- Admin credentials — choose between Secrets Manager-managed (recommended) or manual admin password. Secrets Manager auto-rotates and avoids hardcoding secrets. Manual passwords expire after a configured period; rotation is YOUR responsibility.
- KMS encryption — Redshift Serverless uses an AWS-owned key by default. For production, use a customer-managed key (CMK) so you control rotation policy and cross-account access. The CMK must exist BEFORE create-namespace.
- VPC security groups on the namespace — the namespace-level security groups control which clients can reach the database on port 5439. A common mistake is to attach a security group with no inbound rule, then wonder why the Data API times out.
- Workgroup SECOND — the workgroup attaches to a namespace and defines the compute (base capacity RPU), subnet group, public access toggle, and enhanced VPC routing. A workgroup without enhanced VPC routing sends COPY/UNLOAD traffic over the public internet.
- Usage limits THIRD — Redshift Serverless bills by RPU-hour. A runaway query can exhaust a budget in hours. Set daily and monthly limits BEFORE the first workload runs.
- Snapshots LAST — configure scheduled snapshots and cross-Region copy as the final step so the namespace has data to snapshot.
Prerequisites (verify before deployment)
| Prerequisite | Why it matters | How to verify |
|---|---|---|
| KMS key (if CMK encryption) | CMK must exist and the caller needs kms:CreateGrant. NEVER create with AWS-owned and migrate later. |
aws kms describe-key --key-id <alias> |
| VPC subnets (3+ AZs) | Redshift Serverless requires a subnet group spanning at least 3 AZs for HA. | aws ec2 describe-subnets --subnet-ids <ids> |
| Security group(s) | Inbound rule for port 5439 from the analytics application SG. NEVER 0.0.0.0/0. |
aws ec2 describe-security-groups --group-ids <sg-ids> |
| Subnet group | Created from the subnets; attached to the workgroup. | aws redshift-serverless describe-subnet-groups (errors if none) |
| IAM namespace role (optional) | Trust redshift.amazonaws.com. Scoped for S3/Glue/KMS access during COPY/UNLOAD. |
aws iam get-role --role-name <role> |
| Secrets Manager secret (recommended) | Stores admin password. Auto-rotation via Lambda. NEVER hardcode admin password in create-namespace. | aws secretsmanager describe-secret --secret-id <id> |
| Service quota | Default 30 RPU-hours per region per account. Request increase BEFORE production. | aws service-quotas get-service-quota --service-code redshift-serverless --quota-code L-XXXXXXXX |
| Cross-Region KMS key (if cross-Region snapshots) | Snapshot copy requires a separate CMK in the destination Region. NEVER reuse the source-Region key. | aws kms describe-key --key-id <dest-alias> --region <dest-region> |
Deployment procedure (apply in order)
Step 1: KMS key (encryption)
For production, use a customer-managed key. The AWS-owned key cannot be audited, rotated, or shared cross-account. Create the CMK BEFORE the namespace.
Moved verbatim → references/cli-commands-and-iac.md § "Step 1 — KMS key creation". Load when: creating the customer-managed KMS key and alias before create-namespace.
Rules:
- Key policy MUST allow
redshift-serverless.amazonaws.comto usekms:CreateGrantandkms:GenerateDataKey*. - NEVER use the same CMK across Regions — KMS keys are Region-scoped.
- Document the key ID — there is no way to recover the key ID from a namespace after creation if the alias is deleted.
Step 2: Subnet group
aws redshift-serverless create-subnet-group \
--subnet-group-name redshift-subnet-group \
--subnet-ids subnet-aaa subnet-bbb subnet-ccc \
--security-group-ids sg-redshift-prod
Rules:
- At least 3 subnets across different AZs for high availability.
- Subnets MUST be in private IP ranges if you disable public access (recommended for production).
- Security group inbound MUST allow port 5439 from the analytics
application SG. NEVER
0.0.0.0/0.
Step 3: IAM namespace role (for COPY/UNLOAD/S3/Glue)
The namespace IAM role is assumed by Redshift Serverless for
data-plane AWS API calls (COPY from S3, UNLOAD to S3, Glue catalog
integration). Without it, COPY from S3 fails with S3ServiceException.
Moved verbatim → references/cli-commands-and-iac.md § "Step 3 — IAM namespace role". Load when: creating the namespace IAM role and its inline data-access policy.
Step 4: Secrets Manager admin credential (recommended)
aws secretsmanager create-secret \
--name redshift/admin \
--secret-string '{
"username": "admin",
"password": "<generate-32-char-strong-password>",
"engine": "redshift",
"host": "<filled-after-workgroup-creation>",
"port": 5439
}'
NEVER hardcode the admin password in the create-namespace CLI.
Secrets Manager manages rotation, auditing, and access scoping. If you
must use a manual admin password, set adminPassword in
create-namespace and rotate it within 90 days.
Step 5: Namespace
Moved verbatim → references/cli-commands-and-iac.md § "Step 5 — create-namespace". Load when: running create-namespace with KMS, IAM roles, security groups, and log exports.
Rules:
- db-name MUST be lowercase, 1-64 alphanumeric/underscore. NOT a
reserved keyword. Default
dev. - admin-user-password MUST be 8-64 chars with at least one uppercase, lowercase, number, and special char.
- log-exports —
userlog,connectionlog,useractivitylogstream to CloudWatch Logs. Set on namespace creation; not retroactive. - security-group-ids — applied at the namespace level. The security group inbound rule for port 5439 controls client access.
Step 6: Workgroup (compute)
aws redshift-serverless create-workgroup \
--workgroup-name analytics-wg-prod \
--namespace-name analytics-ns-prod \
--base-capacity 128 \
--subnet-group-name redshift-subnet-group \
--security-group-ids sg-redshift-prod \
--publicly-accessible false \
--config-parameters '[{"parameterKey":"enable_user_activity_logging","parameterValue":"true"},{"parameterKey":"enable_data_api","parameterValue":"true"},{"parameterKey":"enhanced_vpc_routing","parameterValue":"true"},{"parameterKey":"query_group","parameterValue":"analytics"}]' \
--tags Environment=production Application=analytics
Parameters:
- base-capacity — RPU (Redshift Processing Units). 8-512 RPU in multiples of 8. 128 RPU is a common production starting point.
- publicly-accessible —
falsefor production. NEVER expose a data warehouse to the public internet. - enhanced_vpc_routing —
trueforces COPY/UNLOAD traffic through your VPC. Without it, traffic traverses the public internet via Amazon S3 endpoints. - enable_data_api —
trueenables the Data API for query execution without a persistent JDBC/ODBC connection.
Step 7: Usage limits (cost controls)
aws redshift-serverless put-usage-limit \
--usage-type serverless-compute \
--amount 500 \
--period daily \
--breach-action log
aws redshift-serverless put-usage-limit \
--usage-type serverless-compute \
--amount 12000 \
--period monthly \
--breach-action emit-metric
breach-action |
Behavior |
|---|---|
log |
Log a CloudWatch event when the limit is exceeded. Queries continue. |
emit-metric |
Emit a CloudWatch metric and log. Queries continue. |
disable |
Disable the workgroup. ALL queries fail until the limit is reset. |
- NEVER use
disableon a production workgroup without a runbook. A threshold breach silently turns off analytics. Uselogoremit-metricwith a CloudWatch alarm. - Daily 500 RPU-hours is a starting budget for a moderate analytics workload. 1 RPU-hour = 1 RPU running for 1 hour.
- Monitor with CloudWatch: metric
ServerlessComputeCapacity, dimensionWorkgroup.
Step 8: Data API
The Data API (enabled via enable_data_api=true in the workgroup
config-parameters) lets you execute queries via the
redshift-data:ExecuteStatement API. No JDBC/ODBC connection needed.
aws redshift-data execute-statement \
--workgroup-name analytics-wg-prod \
--database dev \
--sql "SELECT COUNT(*) FROM sales"
Rules:
- The caller needs
redshift-data:ExecuteStatementplus the Secrets Manager secret permission if using Secrets Manager auth. describe-statementandget-statement-resultfor async result retrieval. Long-running queries return immediately with a statement ID.- NEVER use the Data API for high-frequency OLTP queries — it is optimized for batch analytics, not microsecond latency.
Step 9: Query editor v2 association
Query editor v2 is a managed web UI. It requires an IAM policy allowing
redshift-serverless:* and redshift-data:* for the IAM principal
running it.
Moved verbatim → references/cli-commands-and-iac.md § "Step 9 — query editor v2 policy". Load when: creating the query editor v2 IAM policy.
Attach the policy to the IAM user/role that runs the query editor v2. The query editor auto-discovers workgroups and namespaces.
Step 10: Snapshots and cross-Region copy
Moved verbatim → references/cli-commands-and-iac.md § "Step 10 — snapshots and cross-Region copy". Load when: creating the scheduled action and cross-Region snapshot copy grant.
Rules:
- Cross-Region copy requires a SEPARATE CMK in the destination Region. NEVER reuse the source-Region key — KMS keys are Region-scoped.
- Snapshot retention is configurable via the
--snapshot-retention-periodon the scheduled action. - NEVER delete the cross-Region snapshot CMK while a snapshot copy grant references it — the next scheduled copy will fail silently.
Step 11: Verification
Moved verbatim → references/diagnostic-commands.md § "Step 11 — verification commands". Load when: verifying the deployment after apply — workgroup, namespace, usage limits, snapshots, secret, KMS, log groups.
Latest Redshift Serverless features (2024-2026)
Moved verbatim → references/advanced-patterns.md § "Latest features (2024-2026)". Load when: deciding cross-Region copy, usage-limit cost controls, Secrets Manager rotation, zero-ETL, concurrent scaling, ML-driven WLM, or row-level security.
Workload matrix
| Workload | Base RPU | Public access | Enhanced VPC | Usage limit | Cross-Region snapshots |
|---|---|---|---|---|---|
| BI dashboard | 32-64 | Disabled | Enabled | Daily 200 RPU-hr | Optional |
| Ad-hoc analytics | 128 | Disabled | Enabled | Daily 500 RPU-hr | Yes |
| Heavy ETL (nightly) | 256 | Disabled | Enabled | Daily 1000 RPU-hr (peak at night) | Yes |
| Multi-tenant SaaS | 128-256 | Disabled | Enabled | Monthly 12000 RPU-hr | Yes |
| Dev/test | 8-32 | Disabled | Disabled | Monthly 500 RPU-hr | No |
| Real-time (zero-ETL) | 128 | Disabled | Enabled | Monthly 15000 RPU-hr | Yes |
NEVER (top 5 — full list of 12 in references)
- NEVER create a namespace with the AWS-owned KMS key for production. The AWS-owned key cannot be audited, rotated, shared cross-account, or used for cross-Region snapshot copy. Migrating encryption keys after creation requires a full UNLOAD/LOAD cycle. #1 rollback-breaker.
- NEVER enable
publicly-accessible=trueon a production workgroup. A data warehouse should never be reachable from the public internet. Use a bastion, VPN, or Direct Connect for admin access. - NEVER deploy a workgroup without
enhanced_vpc_routing=trueif you COPY/UNLOAD from/to S3. Without it, COPY/UNLOAD traffic traverses the public internet via Amazon S3 endpoints, which violates most compliance regimes (HIPAA, PCI, SOC2). - NEVER set
breach-action=disableon a production usage limit without a runbook. A threshold breach silently turns off ALL queries. Uselogoremit-metricwith a CloudWatch alarm for production. - NEVER delete the cross-Region snapshot CMK while a snapshot copy grant references it. The next scheduled cross-Region copy will fail silently, and you will not know until a DR failover is attempted.
Expert heuristic — sizing, cost controls, and snapshot strategy
- RPU sizing: start at 128 RPU for a moderate analytics workload (10-50 concurrent queries, 1-5 TB). For heavy ETL with nightly windowed loads, scale to 256+ RPU during the window and rely on concurrent scaling for daytime BI.
- The 80/20 budget rule: set the daily usage limit at 80% of your daily budget and the monthly limit at 120%. The daily limit catches runaway queries early; the monthly limit is the hard ceiling.
- Snapshot interval vs cost: every snapshot consumes storage at the source Region AND the destination Region. An 8-hour interval is a good default; a 1-hour interval doubles snapshot storage cost.
- Data API vs JDBC: use the Data API for Lambda, Step Functions, and EventBridge integrations (no connection pool needed). Use JDBC for BI tools that require persistent connections (Tableau, Looker).
- CMK rotation: enable annual KMS key rotation. Redshift Serverless handles re-encryption transparently.
- Log exports: set
userlog,connectionlog,useractivitylogat namespace creation. CloudWatch log group is/aws/redshift/<namespace>. Retention defaults to Never Expire — set a retention policy.
Pre-flight safety checks (run before any deployment CLI)
- Confirm CMK exists and key policy allows
redshift-serverless. - Confirm subnet group spans 3+ AZs.
- Confirm security group inbound rule for port 5439 from analytics
app SG. NEVER
0.0.0.0/0. - Confirm namespace IAM role trusts
redshift.amazonaws.com. - Confirm Secrets Manager secret exists (if used for admin password).
- Confirm service quota for RPU-hours is sufficient.
- For cross-Region snapshots, confirm destination-Region CMK exists.
- For existing namespaces, capture current config for rollback.
Full CLI sequences for all checks in references/configuration-and-cost-guide.md.
Output format — MANDATORY literal labels
When invoked with a Redshift Serverless deployment request, your
ENTIRE response MUST be the checklist block below. The labels are
case-sensitive all-caps keywords. Do NOT write a preamble. Start
with WORKGROUP: and stop after the VERIFICATION_COMMANDS: block.
WORKGROUP: <name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
CHECKLIST:
[✓] Namespace — <namespace-name>, database <db-name>, admin user <admin>
[✓] Admin credentials — Secrets Manager secret <secret-arn> | manual password (rotate <days>)
[✓] KMS encryption — customer-managed key <key-arn> (encryption enabled) | AWS-owned (NOT recommended)
[✓] IAM roles — <namespace-role> (<data-plane-permissions>)
[✓] VPC security groups — <sg-ids> (inbound 5439 from <source-sg>)
[✓] Workgroup — <workgroup-name>, base capacity <rpu> RPU
[✓] Subnet group — <subnet-group> (<subnet-count> subnets across <az-count> AZs)
[✓] Public access — enabled | disabled
[✓] Enhanced VPC routing — enabled | disabled
[✓] Usage limits — daily <daily> RPU-hours, monthly <monthly> RPU-hour budget (<breach-action>)
[✓] Data API — enabled | disabled
[✓] Query editor v2 — associated (<iam-policy>)
[✓] Snapshots — automated every <interval>, <retention>-day retention, cross-Region copy to <dest-region> with KMS <dest-key-arn>
[OPTIONAL] Concurrency scaling — enabled (auto-scaling beyond base RPU)
VERIFICATION_COMMANDS:
aws redshift-serverless describe-workgroup --workgroup-name <wg>
aws redshift-serverless describe-namespace --namespace-name <ns>
aws redshift-serverless list-usage-limits
aws secretsmanager describe-secret --secret-id <secret-id>
aws kms describe-key --key-id <key-alias>
Status marker semantics:
[✓]— applied and verified.[✗]— NOT applied or misconfigured. Cite the gap.[OPTIONAL]— recommended but not required.[INPUT NEEDED]— prerequisite value missing; operator must provide.
PREREQUISITES_MISSING verdict: if any REQUIRED prerequisite is
missing (CMK for production, subnet group with 3+ AZs, security group
with port 5439 inbound, namespace IAM role for COPY/UNLOAD, Secrets
Manager secret for admin password), the verdict is
PREREQUISITES_MISSING.
References (load on demand)
- references/cli-commands-and-iac.md — full CLI sequences and Terraform/CloudFormation equivalents; now also holds the KMS, IAM role, namespace, query-editor policy, and snapshot CLI moved from SKILL.md
- references/configuration-and-cost-guide.md — encryption, networking, usage limits, DR strategy, full NEVER list; now also holds the SKILL.md edge-case catalog
- references/diagnostic-commands.md — Step 11 post-deployment verification commands
- references/advanced-patterns.md — 2024-2026 feature changes (cross-Region copy, cost controls, Secrets Manager rotation, zero-ETL, concurrent scaling, ML-driven WLM, RLS)
Domain
AWS CloudOps / Redshift Serverless Analytics Data Warehouse Provisioning.
Edge-case handling
Moved verbatim → references/configuration-and-cost-guide.md § "Edge-case handling". Load when: migrating from provisioned, cross-account datashares, multi-AZ, zero-ETL from Aurora, rotation, usage-limit reset, or CMK deletion edge cases.
AWS documentation
- Redshift Serverless Developer Guide — https://docs.aws.amazon.com/redshift/latest/dg/serverless-whatis.html
- CreateNamespace API — https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_CreateNamespace.html
- CreateWorkgroup API — https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_CreateWorkgroup.html
- Redshift Serverless Usage Limits — https://docs.aws.amazon.com/redshift/latest/dg/serverless-usage-limits.html
- Redshift Data API — https://docs.aws.amazon.com/redshift/latest/dg/data-api.html
- Cross-Region Snapshots — https://docs.aws.amazon.com/redshift/latest/dg/serverless-cross-region-snapshots.html
- Query Editor v2 — https://docs.aws.amazon.com/redshift/latest/dg/query-editor-v2.html
- Zero-ETL Integrations — https://docs.aws.amazon.com/redshift/latest/dg/zero-etl.html
- Redshift Serverless CLI Reference — https://docs.aws.amazon.com/cli/latest/reference/redshift-serverless/
References
-
references/cli-commands-and-iac.md— full copy-pasteable CLI command sequence for all 11 deployment steps, including KMS key creation, subnet group creation, namespace IAM role, Secrets Manager secret, namespace creation, workgroup creation, usage limits, scheduled snapshots, cross-Region snapshot copy, and Terraform / CloudFormation equivalents. -
references/configuration-and-cost-guide.md— deep reference on encryption strategy, VPC networking, usage-limit tuning, snapshot and cross-Region DR strategy, Data API patterns, query editor v2 setup, full NEVER list, edge-case handling, and pre-flight safety CLI.
04 同仓库更多 Skills
xray-tracing-deployer
Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL / method / service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry / ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS / EKS / Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.
wellarchitected-workload-auditor
Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.
wellarchitected-review-operator
Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer / get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.
wafv2-web-acl-deployer
Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB/API Gateway/CloudFront, or configuring CAPTCHA/Challenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.
wafv2-web-acl-auditor
Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow/bypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.
waf-rule-deployer
Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.