[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aws-redshift-guide":3,"mdc--3rknou-key":35,"related-repo-aws-redshift-guide":1335,"related-org-aws-redshift-guide":1441},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":24,"repoUrl":25,"updatedAt":26,"license":27,"forks":28,"topics":29,"repo":30,"sourceUrl":33,"mdContent":34},"redshift-guide","optimize Amazon Redshift SQL and operations","Amazon Redshift is NOT PostgreSQL — corrects PostgreSQL-derived LLM mistakes; covers Redshift-specific SQL, DDL, COPY\u002FUNLOAD, system views, metadata discovery, and operational patterns. Applies ONLY when the task is about Redshift itself (cluster, Serverless workgroup, or Redshift SQL). Pushes back on: CREATE INDEX, string_agg, pg_catalog, text type, SERIAL, stl_query, LATERAL, RETURNING. Triggers on: Redshift SQL, Redshift CREATE TABLE, Redshift COPY\u002FUNLOAD, slow Redshift query, Redshift permission denied, Redshift disk full, Redshift system views, QUALIFY, PIVOT, MERGE, Redshift Data API, Redshift WLM, concurrency scaling, Redshift resize, Redshift Spectrum external tables. Does NOT apply to (defer to that service's own skill): Amazon S3 storage\u002Fbucket policies, Athena or Glue queries\u002Fcatalogs, data-lake or Iceberg work outside Redshift, Aurora, RDS, or DynamoDB — but S3\u002FGlue ARE in scope for Redshift COPY, UNLOAD, or data-lake queries (external schemas\u002Ftables on S3).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"aws","AWS (Amazon)","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Faws.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Data Engineering","data-engineering","tag",{"name":17,"slug":18,"type":15},"Database","database",{"name":20,"slug":21,"type":15},"SQL","sql",{"name":23,"slug":8,"type":15},"AWS",1822,"https:\u002F\u002Fgithub.com\u002Faws\u002Fagent-toolkit-for-aws","2026-08-10T04:45:56.112268",null,157,[],{"repoUrl":25,"stars":24,"forks":28,"topics":31,"description":32},[],"Official, AWS-supported MCP servers, skills, and plugins to help AI agents build on AWS","https:\u002F\u002Fgithub.com\u002Faws\u002Fagent-toolkit-for-aws\u002Ftree\u002FHEAD\u002Fskills\u002Fspecialized-skills\u002Fanalytics-skills\u002Fredshift-guide","---\nname: redshift-guide\ndescription: \"Amazon Redshift is NOT PostgreSQL — corrects PostgreSQL-derived LLM mistakes; covers Redshift-specific SQL, DDL, COPY\u002FUNLOAD, system views, metadata discovery, and operational patterns. Applies ONLY when the task is about Redshift itself (cluster, Serverless workgroup, or Redshift SQL). Pushes back on: CREATE INDEX, string_agg, pg_catalog, text type, SERIAL, stl_query, LATERAL, RETURNING. Triggers on: Redshift SQL, Redshift CREATE TABLE, Redshift COPY\u002FUNLOAD, slow Redshift query, Redshift permission denied, Redshift disk full, Redshift system views, QUALIFY, PIVOT, MERGE, Redshift Data API, Redshift WLM, concurrency scaling, Redshift resize, Redshift Spectrum external tables. Does NOT apply to (defer to that service's own skill): Amazon S3 storage\u002Fbucket policies, Athena or Glue queries\u002Fcatalogs, data-lake or Iceberg work outside Redshift, Aurora, RDS, or DynamoDB — but S3\u002FGlue ARE in scope for Redshift COPY, UNLOAD, or data-lake queries (external schemas\u002Ftables on S3).\"\nversion: 1\n---\n\n# Amazon Redshift Guide\n\n## Redshift is NOT PostgreSQL (read first)\n\nRedshift speaks PostgreSQL's wire protocol and shares much of its surface syntax, so\nLLMs assume PostgreSQL behavior carries over — it frequently does not. Divergences span\nsystem tables (`pg_catalog` is incomplete), DDL (no indexes, no sequences), functions\n(`string_agg`, `SUBSTR` on tables, leader-node-only functions), types (a `text` column\nbecomes VARCHAR(256)), and comparison semantics (trailing blanks, unenforced constraints). **Assume\ndivergence and verify against the reference below — do not answer from PostgreSQL habit.**\nCommon PostgreSQL→Redshift divergences are in `references\u002Fredshift-sql-syntax.md`.\n\n**Works best with** the [AWS MCP server](https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-mcp\u002F) — it runs the\nAWS CLI and Redshift Data API calls below in a sandboxed, audit-logged environment. All\nguidance here is plain AWS CLI and SQL and works without it.\n\n## STEP 0: Serverless or Provisioned?\n\nEstablish this before answering — APIs, system tables, and capabilities differ. Take it\nfrom the question when it says which one; **ask** when it does not. `SELECT version()`\ndoes not identify it.\n\n- **Serverless** — identified by a *workgroup* (and namespace). Data API calls take\n  `--workgroup-name`; the user says \"workgroup\"\u002F\"Serverless\".\n- **Provisioned** — identified by a *cluster*. Data API calls take\n  `--cluster-identifier`; the user says \"cluster\".\n\n| Target | System Views | Credentials API |\n|---|---|---|\n| **Provisioned** | `SYS_`, all `SVV_` + `STL_`, `STV_`, `SVL_`, `SVCS_` (single-AZ only — disabled on Multi-AZ) | `redshift:GetClusterCredentials` |\n| **Serverless** | `SYS_` + a subset of `SVV_` ONLY (no `STL`\u002F`STV`\u002F`SVL`\u002F`SVCS`) | `redshift-serverless:GetCredentials` |\n\n## Critical Facts\n\n- **SHOW commands are the primary metadata interface** — SHOW DATABASES, SHOW SCHEMAS, SHOW TABLES, SHOW COLUMNS, SHOW TABLE, SHOW VIEW. Do NOT default to pg_catalog or information_schema. → **Load `references\u002Fredshift-sql-metadata.md` for metadata\u002Fdiscovery questions and any \"relation does not exist\" report** — it has the diagnostic flow.\n- **`SYS_` views are the preferred system views** — they work everywhere. `STL_`, `STV_`, `SVL_`, and `SVCS_` are provisioned single-AZ only, and some `SVV_` views are unsupported on Serverless. → **Load `references\u002Fredshift-sql-metadata.md` for any system-view or monitoring question.**\n- **`sys_load_error_detail`** for COPY debugging (not `stl_load_errors`, which is provisioned single-AZ only).\n- **DATEADD\u002FDATEDIFF** — unit-first argument order: `DATEADD(day, -30, GETDATE())`, `DATEDIFF(day, start, end)`.\n- **APPROXIMATE COUNT(DISTINCT col)** — Redshift-specific, ~2% error, much faster than exact COUNT(DISTINCT) on large datasets.\n- **MERGE ... REMOVE DUPLICATES** — simplified dedup when source and target have identical schemas.\n- **COPY should use IAM_ROLE** (the namespace role, not the caller role) + supports MANIFEST for explicit file lists + MAXERROR for error tolerance.\n- **`SUBSTR()` is leader-node-only** — works on literals but errors on table columns (`SUBSTR() function is not supported (Hint: use SUBSTRING instead)`). Use `SUBSTRING()` on columns.\n- **UNIQUE \u002F PRIMARY KEY \u002F FOREIGN KEY are informational only** — NOT enforced (duplicate rows are accepted with no error). Optimizer hints; enforce integrity in the application or via MERGE. `NOT NULL` IS enforced.\n- **`SHOW VIEW \u003Cschema.name>`** returns the definition of a regular view, materialized view, or late-binding view. MV freshness: `SVV_MV_INFO` (`is_stale`).\n- **`TOP N` and `LIMIT N` both work** (`TOP N PERCENT` does not). A `text` column becomes `VARCHAR(256)` — use `VARCHAR(max)` or explicit length.\n- **Iceberg tables use `CREATE TABLE ... USING ICEBERG`** (not `STORED AS ICEBERG`, not `TABLE_FORMAT=ICEBERG`).\n- **Datashares support read and write operations** — consumers can write once the producer grants write privileges. Treat \"permission denied\" on a datashare write as a **missing grant**, not an unsupported operation. → **Load `references\u002Fredshift-sql-metadata.md` for requirements and limits.**\n\n## Safety Guardrails\n\n**BLOCK:** DROP DATABASE, DELETE without WHERE, publicly-accessible=true, GRANT ALL ON ALL\n**WARN then confirm:** RESIZE, RESTORE, VACUUM on large tables, ALTER PASSWORD, WLM config change\n**Confirm:** CREATE, GRANT specific, COPY, UNLOAD\n\n## Security Considerations\n\nApply these defaults when generating anything that connects, loads, or exports. Details\nare in the reference files noted.\n\n- **In transit:** the Data API is HTTPS-only. For JDBC\u002FODBC set the `require_ssl`\n  parameter and connect with `sslmode=verify-full` so the server certificate is checked.\n- **At rest:** keep cluster\u002Fnamespace encryption enabled, and add\n  `ENCRYPTED KMS_KEY_ID '\u003Carn>'` to `UNLOAD` — it writes query results to S3, outside\n  Redshift's own encryption. → `references\u002Fredshift-sql-ddl-copy.md`\n- **Credentials:** prefer `SecretArn` (Secrets Manager) or IAM Identity Center; `DbUser`\n  is acceptable because it issues temporary credentials. Never place database passwords in\n  code, environment variables, or SQL text. → `references\u002Fredshift-sql-recipes-load-api.md`\n- **Least privilege:** scope the namespace `IAM_ROLE` to the specific bucket and prefix\n  (`s3:GetObject` on `arn:aws:s3:::\u003Cbucket>\u002F\u003Cprefix>\u002F*`), not `s3:*` or a managed\n  full-access policy, and condition its trust policy on both `aws:SourceArn` (the\n  cluster\u002Fnamespace ARN) and `aws:SourceAccount` — `SourceArn` alone still allows another\n  resource in the account to assume it. Grant per-object privileges rather than\n  `GRANT ALL ON ALL`.\n- **Audit:** CloudTrail records `redshift-data:*` API calls but not the SQL executed;\n  enable Redshift audit logging (`useractivitylog`, `connectionlog`, `userlog`) for that.\n  Both capture query text and user activity, so encrypt every destination in use:\n  the CloudWatch Logs group (`aws logs associate-kms-key`), the CloudTrail trail\n  (SSE-KMS), and the audit-log S3 bucket (SSE-S3 — audit logging to S3 supports only\n  S3-managed keys, not KMS). Serverless only supports sending audit logs to CloudWatch.\n- **Network:** keep `PubliclyAccessible=false` and connect over a VPC\n  endpoint. Do not open port 5439 to `0.0.0.0\u002F0` or `::\u002F0` — scope inbound rules to\n  specific CIDRs or to a referencing security group.\n- **Sensitive data:** Data API results persist for 24h and `sys_load_error_detail` can\n  echo fragments of rejected rows, so treat statement IDs and load-error output as\n  sensitive.\n- **Further reading:**\n  [Security in Amazon Redshift](https:\u002F\u002Fdocs.aws.amazon.com\u002Fredshift\u002Flatest\u002Fdg\u002Fdb-security.html)\n  for the full guidance behind these defaults.\n\n## Routing Table\n\n**MANDATORY:** When a question matches a row below, you MUST load and read the referenced file BEFORE answering.\n\n**Ask whether the target is provisioned or Serverless before giving troubleshooting steps —\nunless the question already says which one, in which case use that and do not re-confirm.**\n\n| User Intent | Route To |\n|---|---|\n| \"CREATE TABLE\", \"DISTKEY\u002FSORTKEY\", \"ENCODE\", \"IDENTITY\", \"COPY\", \"UNLOAD\", \"IAM_ROLE\", \"Iceberg table\" | `references\u002Fredshift-sql-ddl-copy.md` |\n| \"LISTAGG\", \"DATEADD\u002FDATEDIFF\", \"NVL\u002FDECODE\", \"type mapping\", \"text type\", \"VARBYTE\", \"recursive CTE\" | `references\u002Fredshift-sql-functions-types.md` |\n| \"QUALIFY\", \"PIVOT\u002FUNPIVOT\", \"MERGE\", \"TOP N\", \"SUBSTR error\", \"UNIQUE\u002FPK not enforced\", \"trailing blanks\", \"leader-node function\", \"JSON\", \"SUPER\", \"PartiQL\", \"nested\u002Fsemi-structured data\" | `references\u002Fredshift-sql-extensions-semantics.md` |\n| \"system view\", \"SVV_\u002FSYS_\", \"SHOW commands\", \"STL vs SYS\", \"list tables\", \"distkey\u002Fsortkey lookup\", \"datashare discovery\", \"2-part vs 3-part\", \"permission denied\", \"GRANT\", \"privileges\", **\"relation\u002Ftable does not exist\"** | `references\u002Fredshift-sql-metadata.md` |\n| \"how do I write SQL\", \"PostgreSQL vs Redshift\", \"which SQL reference\", general dialect question | `references\u002Fredshift-sql-syntax.md` (index of the 6 SQL references + PostgreSQL-vs-Redshift failure table) |\n| \"COPY failed\", \"load error\", \"Data API poll\", \"async query\", \"Data API throttle\" | `references\u002Fredshift-sql-recipes-load-api.md` |\n| \"materialized view\", \"MV refresh\", \"AUTO REFRESH\", \"stale view\" | `references\u002Fredshift-sql-materialized-views.md` |\n| General Redshift question not matching above | Answer directly from general knowledge |\n| Aurora, RDS, DynamoDB, Athena (non-Redshift) | **REFUSE.** State this skill is for Amazon Redshift only. Do not provide guidance for other database services. |\n\n## Data API Quick Reference\n\n→ **Load `references\u002Fredshift-sql-recipes-load-api.md` before answering ANY Data API, COPY-error, or async-query question.** It carries the bounded poll loop, the `HasResultSet` and `ResourceNotFoundException` handling, the per-target parameters, and the auth options.\n\nData API calls are **async by default** — use long polling (`--wait-time-seconds`, 1–30)\nrather than blind sleeps, and keep a bounded loop for work that can exceed 30s.\nServerless takes `--workgroup-name`, provisioned takes `--cluster-identifier`.\n",{"data":36,"body":38},{"name":4,"description":6,"version":37},1,{"type":39,"children":40},"root",[41,50,57,111,132,138,158,213,379,385,741,747,771,777,782,1064,1070,1080,1088,1263,1269,1302],{"type":42,"tag":43,"props":44,"children":46},"element","h1",{"id":45},"amazon-redshift-guide",[47],{"type":48,"value":49},"text","Amazon Redshift Guide",{"type":42,"tag":51,"props":52,"children":54},"h2",{"id":53},"redshift-is-not-postgresql-read-first",[55],{"type":48,"value":56},"Redshift is NOT PostgreSQL (read first)",{"type":42,"tag":58,"props":59,"children":60},"p",{},[61,63,70,72,78,80,86,88,93,95,101,103,109],{"type":48,"value":62},"Redshift speaks PostgreSQL's wire protocol and shares much of its surface syntax, so\nLLMs assume PostgreSQL behavior carries over — it frequently does not. Divergences span\nsystem tables (",{"type":42,"tag":64,"props":65,"children":67},"code",{"className":66},[],[68],{"type":48,"value":69},"pg_catalog",{"type":48,"value":71}," is incomplete), DDL (no indexes, no sequences), functions\n(",{"type":42,"tag":64,"props":73,"children":75},{"className":74},[],[76],{"type":48,"value":77},"string_agg",{"type":48,"value":79},", ",{"type":42,"tag":64,"props":81,"children":83},{"className":82},[],[84],{"type":48,"value":85},"SUBSTR",{"type":48,"value":87}," on tables, leader-node-only functions), types (a ",{"type":42,"tag":64,"props":89,"children":91},{"className":90},[],[92],{"type":48,"value":48},{"type":48,"value":94}," column\nbecomes VARCHAR(256)), and comparison semantics (trailing blanks, unenforced constraints). ",{"type":42,"tag":96,"props":97,"children":98},"strong",{},[99],{"type":48,"value":100},"Assume\ndivergence and verify against the reference below — do not answer from PostgreSQL habit.",{"type":48,"value":102},"\nCommon PostgreSQL→Redshift divergences are in ",{"type":42,"tag":64,"props":104,"children":106},{"className":105},[],[107],{"type":48,"value":108},"references\u002Fredshift-sql-syntax.md",{"type":48,"value":110},".",{"type":42,"tag":58,"props":112,"children":113},{},[114,119,121,130],{"type":42,"tag":96,"props":115,"children":116},{},[117],{"type":48,"value":118},"Works best with",{"type":48,"value":120}," the ",{"type":42,"tag":122,"props":123,"children":127},"a",{"href":124,"rel":125},"https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-mcp\u002F",[126],"nofollow",[128],{"type":48,"value":129},"AWS MCP server",{"type":48,"value":131}," — it runs the\nAWS CLI and Redshift Data API calls below in a sandboxed, audit-logged environment. All\nguidance here is plain AWS CLI and SQL and works without it.",{"type":42,"tag":51,"props":133,"children":135},{"id":134},"step-0-serverless-or-provisioned",[136],{"type":48,"value":137},"STEP 0: Serverless or Provisioned?",{"type":42,"tag":58,"props":139,"children":140},{},[141,143,148,150,156],{"type":48,"value":142},"Establish this before answering — APIs, system tables, and capabilities differ. Take it\nfrom the question when it says which one; ",{"type":42,"tag":96,"props":144,"children":145},{},[146],{"type":48,"value":147},"ask",{"type":48,"value":149}," when it does not. ",{"type":42,"tag":64,"props":151,"children":153},{"className":152},[],[154],{"type":48,"value":155},"SELECT version()",{"type":48,"value":157},"\ndoes not identify it.",{"type":42,"tag":159,"props":160,"children":161},"ul",{},[162,189],{"type":42,"tag":163,"props":164,"children":165},"li",{},[166,171,173,179,181,187],{"type":42,"tag":96,"props":167,"children":168},{},[169],{"type":48,"value":170},"Serverless",{"type":48,"value":172}," — identified by a ",{"type":42,"tag":174,"props":175,"children":176},"em",{},[177],{"type":48,"value":178},"workgroup",{"type":48,"value":180}," (and namespace). Data API calls take\n",{"type":42,"tag":64,"props":182,"children":184},{"className":183},[],[185],{"type":48,"value":186},"--workgroup-name",{"type":48,"value":188},"; the user says \"workgroup\"\u002F\"Serverless\".",{"type":42,"tag":163,"props":190,"children":191},{},[192,197,198,203,205,211],{"type":42,"tag":96,"props":193,"children":194},{},[195],{"type":48,"value":196},"Provisioned",{"type":48,"value":172},{"type":42,"tag":174,"props":199,"children":200},{},[201],{"type":48,"value":202},"cluster",{"type":48,"value":204},". Data API calls take\n",{"type":42,"tag":64,"props":206,"children":208},{"className":207},[],[209],{"type":48,"value":210},"--cluster-identifier",{"type":48,"value":212},"; the user says \"cluster\".",{"type":42,"tag":214,"props":215,"children":216},"table",{},[217,241],{"type":42,"tag":218,"props":219,"children":220},"thead",{},[221],{"type":42,"tag":222,"props":223,"children":224},"tr",{},[225,231,236],{"type":42,"tag":226,"props":227,"children":228},"th",{},[229],{"type":48,"value":230},"Target",{"type":42,"tag":226,"props":232,"children":233},{},[234],{"type":48,"value":235},"System Views",{"type":42,"tag":226,"props":237,"children":238},{},[239],{"type":48,"value":240},"Credentials API",{"type":42,"tag":242,"props":243,"children":244},"tbody",{},[245,313],{"type":42,"tag":222,"props":246,"children":247},{},[248,256,304],{"type":42,"tag":249,"props":250,"children":251},"td",{},[252],{"type":42,"tag":96,"props":253,"children":254},{},[255],{"type":48,"value":196},{"type":42,"tag":249,"props":257,"children":258},{},[259,265,267,273,275,281,282,288,289,295,296,302],{"type":42,"tag":64,"props":260,"children":262},{"className":261},[],[263],{"type":48,"value":264},"SYS_",{"type":48,"value":266},", all ",{"type":42,"tag":64,"props":268,"children":270},{"className":269},[],[271],{"type":48,"value":272},"SVV_",{"type":48,"value":274}," + ",{"type":42,"tag":64,"props":276,"children":278},{"className":277},[],[279],{"type":48,"value":280},"STL_",{"type":48,"value":79},{"type":42,"tag":64,"props":283,"children":285},{"className":284},[],[286],{"type":48,"value":287},"STV_",{"type":48,"value":79},{"type":42,"tag":64,"props":290,"children":292},{"className":291},[],[293],{"type":48,"value":294},"SVL_",{"type":48,"value":79},{"type":42,"tag":64,"props":297,"children":299},{"className":298},[],[300],{"type":48,"value":301},"SVCS_",{"type":48,"value":303}," (single-AZ only — disabled on Multi-AZ)",{"type":42,"tag":249,"props":305,"children":306},{},[307],{"type":42,"tag":64,"props":308,"children":310},{"className":309},[],[311],{"type":48,"value":312},"redshift:GetClusterCredentials",{"type":42,"tag":222,"props":314,"children":315},{},[316,323,370],{"type":42,"tag":249,"props":317,"children":318},{},[319],{"type":42,"tag":96,"props":320,"children":321},{},[322],{"type":48,"value":170},{"type":42,"tag":249,"props":324,"children":325},{},[326,331,333,338,340,346,348,354,355,361,362,368],{"type":42,"tag":64,"props":327,"children":329},{"className":328},[],[330],{"type":48,"value":264},{"type":48,"value":332}," + a subset of ",{"type":42,"tag":64,"props":334,"children":336},{"className":335},[],[337],{"type":48,"value":272},{"type":48,"value":339}," ONLY (no ",{"type":42,"tag":64,"props":341,"children":343},{"className":342},[],[344],{"type":48,"value":345},"STL",{"type":48,"value":347},"\u002F",{"type":42,"tag":64,"props":349,"children":351},{"className":350},[],[352],{"type":48,"value":353},"STV",{"type":48,"value":347},{"type":42,"tag":64,"props":356,"children":358},{"className":357},[],[359],{"type":48,"value":360},"SVL",{"type":48,"value":347},{"type":42,"tag":64,"props":363,"children":365},{"className":364},[],[366],{"type":48,"value":367},"SVCS",{"type":48,"value":369},")",{"type":42,"tag":249,"props":371,"children":372},{},[373],{"type":42,"tag":64,"props":374,"children":376},{"className":375},[],[377],{"type":48,"value":378},"redshift-serverless:GetCredentials",{"type":42,"tag":51,"props":380,"children":382},{"id":381},"critical-facts",[383],{"type":48,"value":384},"Critical Facts",{"type":42,"tag":159,"props":386,"children":387},{},[388,413,472,494,518,528,538,548,580,598,628,682,713],{"type":42,"tag":163,"props":389,"children":390},{},[391,396,398,411],{"type":42,"tag":96,"props":392,"children":393},{},[394],{"type":48,"value":395},"SHOW commands are the primary metadata interface",{"type":48,"value":397}," — SHOW DATABASES, SHOW SCHEMAS, SHOW TABLES, SHOW COLUMNS, SHOW TABLE, SHOW VIEW. Do NOT default to pg_catalog or information_schema. → ",{"type":42,"tag":96,"props":399,"children":400},{},[401,403,409],{"type":48,"value":402},"Load ",{"type":42,"tag":64,"props":404,"children":406},{"className":405},[],[407],{"type":48,"value":408},"references\u002Fredshift-sql-metadata.md",{"type":48,"value":410}," for metadata\u002Fdiscovery questions and any \"relation does not exist\" report",{"type":48,"value":412}," — it has the diagnostic flow.",{"type":42,"tag":163,"props":414,"children":415},{},[416,426,428,433,434,439,440,445,447,452,454,459,461],{"type":42,"tag":96,"props":417,"children":418},{},[419,424],{"type":42,"tag":64,"props":420,"children":422},{"className":421},[],[423],{"type":48,"value":264},{"type":48,"value":425}," views are the preferred system views",{"type":48,"value":427}," — they work everywhere. ",{"type":42,"tag":64,"props":429,"children":431},{"className":430},[],[432],{"type":48,"value":280},{"type":48,"value":79},{"type":42,"tag":64,"props":435,"children":437},{"className":436},[],[438],{"type":48,"value":287},{"type":48,"value":79},{"type":42,"tag":64,"props":441,"children":443},{"className":442},[],[444],{"type":48,"value":294},{"type":48,"value":446},", and ",{"type":42,"tag":64,"props":448,"children":450},{"className":449},[],[451],{"type":48,"value":301},{"type":48,"value":453}," are provisioned single-AZ only, and some ",{"type":42,"tag":64,"props":455,"children":457},{"className":456},[],[458],{"type":48,"value":272},{"type":48,"value":460}," views are unsupported on Serverless. → ",{"type":42,"tag":96,"props":462,"children":463},{},[464,465,470],{"type":48,"value":402},{"type":42,"tag":64,"props":466,"children":468},{"className":467},[],[469],{"type":48,"value":408},{"type":48,"value":471}," for any system-view or monitoring question.",{"type":42,"tag":163,"props":473,"children":474},{},[475,484,486,492],{"type":42,"tag":96,"props":476,"children":477},{},[478],{"type":42,"tag":64,"props":479,"children":481},{"className":480},[],[482],{"type":48,"value":483},"sys_load_error_detail",{"type":48,"value":485}," for COPY debugging (not ",{"type":42,"tag":64,"props":487,"children":489},{"className":488},[],[490],{"type":48,"value":491},"stl_load_errors",{"type":48,"value":493},", which is provisioned single-AZ only).",{"type":42,"tag":163,"props":495,"children":496},{},[497,502,504,510,511,517],{"type":42,"tag":96,"props":498,"children":499},{},[500],{"type":48,"value":501},"DATEADD\u002FDATEDIFF",{"type":48,"value":503}," — unit-first argument order: ",{"type":42,"tag":64,"props":505,"children":507},{"className":506},[],[508],{"type":48,"value":509},"DATEADD(day, -30, GETDATE())",{"type":48,"value":79},{"type":42,"tag":64,"props":512,"children":514},{"className":513},[],[515],{"type":48,"value":516},"DATEDIFF(day, start, end)",{"type":48,"value":110},{"type":42,"tag":163,"props":519,"children":520},{},[521,526],{"type":42,"tag":96,"props":522,"children":523},{},[524],{"type":48,"value":525},"APPROXIMATE COUNT(DISTINCT col)",{"type":48,"value":527}," — Redshift-specific, ~2% error, much faster than exact COUNT(DISTINCT) on large datasets.",{"type":42,"tag":163,"props":529,"children":530},{},[531,536],{"type":42,"tag":96,"props":532,"children":533},{},[534],{"type":48,"value":535},"MERGE ... REMOVE DUPLICATES",{"type":48,"value":537}," — simplified dedup when source and target have identical schemas.",{"type":42,"tag":163,"props":539,"children":540},{},[541,546],{"type":42,"tag":96,"props":542,"children":543},{},[544],{"type":48,"value":545},"COPY should use IAM_ROLE",{"type":48,"value":547}," (the namespace role, not the caller role) + supports MANIFEST for explicit file lists + MAXERROR for error tolerance.",{"type":42,"tag":163,"props":549,"children":550},{},[551,562,564,570,572,578],{"type":42,"tag":96,"props":552,"children":553},{},[554,560],{"type":42,"tag":64,"props":555,"children":557},{"className":556},[],[558],{"type":48,"value":559},"SUBSTR()",{"type":48,"value":561}," is leader-node-only",{"type":48,"value":563}," — works on literals but errors on table columns (",{"type":42,"tag":64,"props":565,"children":567},{"className":566},[],[568],{"type":48,"value":569},"SUBSTR() function is not supported (Hint: use SUBSTRING instead)",{"type":48,"value":571},"). Use ",{"type":42,"tag":64,"props":573,"children":575},{"className":574},[],[576],{"type":48,"value":577},"SUBSTRING()",{"type":48,"value":579}," on columns.",{"type":42,"tag":163,"props":581,"children":582},{},[583,588,590,596],{"type":42,"tag":96,"props":584,"children":585},{},[586],{"type":48,"value":587},"UNIQUE \u002F PRIMARY KEY \u002F FOREIGN KEY are informational only",{"type":48,"value":589}," — NOT enforced (duplicate rows are accepted with no error). Optimizer hints; enforce integrity in the application or via MERGE. ",{"type":42,"tag":64,"props":591,"children":593},{"className":592},[],[594],{"type":48,"value":595},"NOT NULL",{"type":48,"value":597}," IS enforced.",{"type":42,"tag":163,"props":599,"children":600},{},[601,610,612,618,620,626],{"type":42,"tag":96,"props":602,"children":603},{},[604],{"type":42,"tag":64,"props":605,"children":607},{"className":606},[],[608],{"type":48,"value":609},"SHOW VIEW \u003Cschema.name>",{"type":48,"value":611}," returns the definition of a regular view, materialized view, or late-binding view. MV freshness: ",{"type":42,"tag":64,"props":613,"children":615},{"className":614},[],[616],{"type":48,"value":617},"SVV_MV_INFO",{"type":48,"value":619}," (",{"type":42,"tag":64,"props":621,"children":623},{"className":622},[],[624],{"type":48,"value":625},"is_stale",{"type":48,"value":627},").",{"type":42,"tag":163,"props":629,"children":630},{},[631,650,651,657,659,664,666,672,674,680],{"type":42,"tag":96,"props":632,"children":633},{},[634,640,642,648],{"type":42,"tag":64,"props":635,"children":637},{"className":636},[],[638],{"type":48,"value":639},"TOP N",{"type":48,"value":641}," and ",{"type":42,"tag":64,"props":643,"children":645},{"className":644},[],[646],{"type":48,"value":647},"LIMIT N",{"type":48,"value":649}," both work",{"type":48,"value":619},{"type":42,"tag":64,"props":652,"children":654},{"className":653},[],[655],{"type":48,"value":656},"TOP N PERCENT",{"type":48,"value":658}," does not). A ",{"type":42,"tag":64,"props":660,"children":662},{"className":661},[],[663],{"type":48,"value":48},{"type":48,"value":665}," column becomes ",{"type":42,"tag":64,"props":667,"children":669},{"className":668},[],[670],{"type":48,"value":671},"VARCHAR(256)",{"type":48,"value":673}," — use ",{"type":42,"tag":64,"props":675,"children":677},{"className":676},[],[678],{"type":48,"value":679},"VARCHAR(max)",{"type":48,"value":681}," or explicit length.",{"type":42,"tag":163,"props":683,"children":684},{},[685,696,698,704,706,712],{"type":42,"tag":96,"props":686,"children":687},{},[688,690],{"type":48,"value":689},"Iceberg tables use ",{"type":42,"tag":64,"props":691,"children":693},{"className":692},[],[694],{"type":48,"value":695},"CREATE TABLE ... USING ICEBERG",{"type":48,"value":697}," (not ",{"type":42,"tag":64,"props":699,"children":701},{"className":700},[],[702],{"type":48,"value":703},"STORED AS ICEBERG",{"type":48,"value":705},", not ",{"type":42,"tag":64,"props":707,"children":709},{"className":708},[],[710],{"type":48,"value":711},"TABLE_FORMAT=ICEBERG",{"type":48,"value":627},{"type":42,"tag":163,"props":714,"children":715},{},[716,721,723,728,730],{"type":42,"tag":96,"props":717,"children":718},{},[719],{"type":48,"value":720},"Datashares support read and write operations",{"type":48,"value":722}," — consumers can write once the producer grants write privileges. Treat \"permission denied\" on a datashare write as a ",{"type":42,"tag":96,"props":724,"children":725},{},[726],{"type":48,"value":727},"missing grant",{"type":48,"value":729},", not an unsupported operation. → ",{"type":42,"tag":96,"props":731,"children":732},{},[733,734,739],{"type":48,"value":402},{"type":42,"tag":64,"props":735,"children":737},{"className":736},[],[738],{"type":48,"value":408},{"type":48,"value":740}," for requirements and limits.",{"type":42,"tag":51,"props":742,"children":744},{"id":743},"safety-guardrails",[745],{"type":48,"value":746},"Safety Guardrails",{"type":42,"tag":58,"props":748,"children":749},{},[750,755,757,762,764,769],{"type":42,"tag":96,"props":751,"children":752},{},[753],{"type":48,"value":754},"BLOCK:",{"type":48,"value":756}," DROP DATABASE, DELETE without WHERE, publicly-accessible=true, GRANT ALL ON ALL\n",{"type":42,"tag":96,"props":758,"children":759},{},[760],{"type":48,"value":761},"WARN then confirm:",{"type":48,"value":763}," RESIZE, RESTORE, VACUUM on large tables, ALTER PASSWORD, WLM config change\n",{"type":42,"tag":96,"props":765,"children":766},{},[767],{"type":48,"value":768},"Confirm:",{"type":48,"value":770}," CREATE, GRANT specific, COPY, UNLOAD",{"type":42,"tag":51,"props":772,"children":774},{"id":773},"security-considerations",[775],{"type":48,"value":776},"Security Considerations",{"type":42,"tag":58,"props":778,"children":779},{},[780],{"type":48,"value":781},"Apply these defaults when generating anything that connects, loads, or exports. Details\nare in the reference files noted.",{"type":42,"tag":159,"props":783,"children":784},{},[785,811,843,875,948,996,1030,1047],{"type":42,"tag":163,"props":786,"children":787},{},[788,793,795,801,803,809],{"type":42,"tag":96,"props":789,"children":790},{},[791],{"type":48,"value":792},"In transit:",{"type":48,"value":794}," the Data API is HTTPS-only. For JDBC\u002FODBC set the ",{"type":42,"tag":64,"props":796,"children":798},{"className":797},[],[799],{"type":48,"value":800},"require_ssl",{"type":48,"value":802},"\nparameter and connect with ",{"type":42,"tag":64,"props":804,"children":806},{"className":805},[],[807],{"type":48,"value":808},"sslmode=verify-full",{"type":48,"value":810}," so the server certificate is checked.",{"type":42,"tag":163,"props":812,"children":813},{},[814,819,821,827,829,835,837],{"type":42,"tag":96,"props":815,"children":816},{},[817],{"type":48,"value":818},"At rest:",{"type":48,"value":820}," keep cluster\u002Fnamespace encryption enabled, and add\n",{"type":42,"tag":64,"props":822,"children":824},{"className":823},[],[825],{"type":48,"value":826},"ENCRYPTED KMS_KEY_ID '\u003Carn>'",{"type":48,"value":828}," to ",{"type":42,"tag":64,"props":830,"children":832},{"className":831},[],[833],{"type":48,"value":834},"UNLOAD",{"type":48,"value":836}," — it writes query results to S3, outside\nRedshift's own encryption. → ",{"type":42,"tag":64,"props":838,"children":840},{"className":839},[],[841],{"type":48,"value":842},"references\u002Fredshift-sql-ddl-copy.md",{"type":42,"tag":163,"props":844,"children":845},{},[846,851,853,859,861,867,869],{"type":42,"tag":96,"props":847,"children":848},{},[849],{"type":48,"value":850},"Credentials:",{"type":48,"value":852}," prefer ",{"type":42,"tag":64,"props":854,"children":856},{"className":855},[],[857],{"type":48,"value":858},"SecretArn",{"type":48,"value":860}," (Secrets Manager) or IAM Identity Center; ",{"type":42,"tag":64,"props":862,"children":864},{"className":863},[],[865],{"type":48,"value":866},"DbUser",{"type":48,"value":868},"\nis acceptable because it issues temporary credentials. Never place database passwords in\ncode, environment variables, or SQL text. → ",{"type":42,"tag":64,"props":870,"children":872},{"className":871},[],[873],{"type":48,"value":874},"references\u002Fredshift-sql-recipes-load-api.md",{"type":42,"tag":163,"props":876,"children":877},{},[878,883,885,891,893,899,901,907,909,915,917,923,925,931,933,939,941,947],{"type":42,"tag":96,"props":879,"children":880},{},[881],{"type":48,"value":882},"Least privilege:",{"type":48,"value":884}," scope the namespace ",{"type":42,"tag":64,"props":886,"children":888},{"className":887},[],[889],{"type":48,"value":890},"IAM_ROLE",{"type":48,"value":892}," to the specific bucket and prefix\n(",{"type":42,"tag":64,"props":894,"children":896},{"className":895},[],[897],{"type":48,"value":898},"s3:GetObject",{"type":48,"value":900}," on ",{"type":42,"tag":64,"props":902,"children":904},{"className":903},[],[905],{"type":48,"value":906},"arn:aws:s3:::\u003Cbucket>\u002F\u003Cprefix>\u002F*",{"type":48,"value":908},"), not ",{"type":42,"tag":64,"props":910,"children":912},{"className":911},[],[913],{"type":48,"value":914},"s3:*",{"type":48,"value":916}," or a managed\nfull-access policy, and condition its trust policy on both ",{"type":42,"tag":64,"props":918,"children":920},{"className":919},[],[921],{"type":48,"value":922},"aws:SourceArn",{"type":48,"value":924}," (the\ncluster\u002Fnamespace ARN) and ",{"type":42,"tag":64,"props":926,"children":928},{"className":927},[],[929],{"type":48,"value":930},"aws:SourceAccount",{"type":48,"value":932}," — ",{"type":42,"tag":64,"props":934,"children":936},{"className":935},[],[937],{"type":48,"value":938},"SourceArn",{"type":48,"value":940}," alone still allows another\nresource in the account to assume it. Grant per-object privileges rather than\n",{"type":42,"tag":64,"props":942,"children":944},{"className":943},[],[945],{"type":48,"value":946},"GRANT ALL ON ALL",{"type":48,"value":110},{"type":42,"tag":163,"props":949,"children":950},{},[951,956,958,964,966,972,973,979,980,986,988,994],{"type":42,"tag":96,"props":952,"children":953},{},[954],{"type":48,"value":955},"Audit:",{"type":48,"value":957}," CloudTrail records ",{"type":42,"tag":64,"props":959,"children":961},{"className":960},[],[962],{"type":48,"value":963},"redshift-data:*",{"type":48,"value":965}," API calls but not the SQL executed;\nenable Redshift audit logging (",{"type":42,"tag":64,"props":967,"children":969},{"className":968},[],[970],{"type":48,"value":971},"useractivitylog",{"type":48,"value":79},{"type":42,"tag":64,"props":974,"children":976},{"className":975},[],[977],{"type":48,"value":978},"connectionlog",{"type":48,"value":79},{"type":42,"tag":64,"props":981,"children":983},{"className":982},[],[984],{"type":48,"value":985},"userlog",{"type":48,"value":987},") for that.\nBoth capture query text and user activity, so encrypt every destination in use:\nthe CloudWatch Logs group (",{"type":42,"tag":64,"props":989,"children":991},{"className":990},[],[992],{"type":48,"value":993},"aws logs associate-kms-key",{"type":48,"value":995},"), the CloudTrail trail\n(SSE-KMS), and the audit-log S3 bucket (SSE-S3 — audit logging to S3 supports only\nS3-managed keys, not KMS). Serverless only supports sending audit logs to CloudWatch.",{"type":42,"tag":163,"props":997,"children":998},{},[999,1004,1006,1012,1014,1020,1022,1028],{"type":42,"tag":96,"props":1000,"children":1001},{},[1002],{"type":48,"value":1003},"Network:",{"type":48,"value":1005}," keep ",{"type":42,"tag":64,"props":1007,"children":1009},{"className":1008},[],[1010],{"type":48,"value":1011},"PubliclyAccessible=false",{"type":48,"value":1013}," and connect over a VPC\nendpoint. Do not open port 5439 to ",{"type":42,"tag":64,"props":1015,"children":1017},{"className":1016},[],[1018],{"type":48,"value":1019},"0.0.0.0\u002F0",{"type":48,"value":1021}," or ",{"type":42,"tag":64,"props":1023,"children":1025},{"className":1024},[],[1026],{"type":48,"value":1027},"::\u002F0",{"type":48,"value":1029}," — scope inbound rules to\nspecific CIDRs or to a referencing security group.",{"type":42,"tag":163,"props":1031,"children":1032},{},[1033,1038,1040,1045],{"type":42,"tag":96,"props":1034,"children":1035},{},[1036],{"type":48,"value":1037},"Sensitive data:",{"type":48,"value":1039}," Data API results persist for 24h and ",{"type":42,"tag":64,"props":1041,"children":1043},{"className":1042},[],[1044],{"type":48,"value":483},{"type":48,"value":1046}," can\necho fragments of rejected rows, so treat statement IDs and load-error output as\nsensitive.",{"type":42,"tag":163,"props":1048,"children":1049},{},[1050,1055,1062],{"type":42,"tag":96,"props":1051,"children":1052},{},[1053],{"type":48,"value":1054},"Further reading:",{"type":42,"tag":122,"props":1056,"children":1059},{"href":1057,"rel":1058},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fredshift\u002Flatest\u002Fdg\u002Fdb-security.html",[126],[1060],{"type":48,"value":1061},"Security in Amazon Redshift",{"type":48,"value":1063},"\nfor the full guidance behind these defaults.",{"type":42,"tag":51,"props":1065,"children":1067},{"id":1066},"routing-table",[1068],{"type":48,"value":1069},"Routing Table",{"type":42,"tag":58,"props":1071,"children":1072},{},[1073,1078],{"type":42,"tag":96,"props":1074,"children":1075},{},[1076],{"type":48,"value":1077},"MANDATORY:",{"type":48,"value":1079}," When a question matches a row below, you MUST load and read the referenced file BEFORE answering.",{"type":42,"tag":58,"props":1081,"children":1082},{},[1083],{"type":42,"tag":96,"props":1084,"children":1085},{},[1086],{"type":48,"value":1087},"Ask whether the target is provisioned or Serverless before giving troubleshooting steps —\nunless the question already says which one, in which case use that and do not re-confirm.",{"type":42,"tag":214,"props":1089,"children":1090},{},[1091,1107],{"type":42,"tag":218,"props":1092,"children":1093},{},[1094],{"type":42,"tag":222,"props":1095,"children":1096},{},[1097,1102],{"type":42,"tag":226,"props":1098,"children":1099},{},[1100],{"type":48,"value":1101},"User Intent",{"type":42,"tag":226,"props":1103,"children":1104},{},[1105],{"type":48,"value":1106},"Route To",{"type":42,"tag":242,"props":1108,"children":1109},{},[1110,1126,1143,1160,1181,1199,1215,1232,1245],{"type":42,"tag":222,"props":1111,"children":1112},{},[1113,1118],{"type":42,"tag":249,"props":1114,"children":1115},{},[1116],{"type":48,"value":1117},"\"CREATE TABLE\", \"DISTKEY\u002FSORTKEY\", \"ENCODE\", \"IDENTITY\", \"COPY\", \"UNLOAD\", \"IAM_ROLE\", \"Iceberg table\"",{"type":42,"tag":249,"props":1119,"children":1120},{},[1121],{"type":42,"tag":64,"props":1122,"children":1124},{"className":1123},[],[1125],{"type":48,"value":842},{"type":42,"tag":222,"props":1127,"children":1128},{},[1129,1134],{"type":42,"tag":249,"props":1130,"children":1131},{},[1132],{"type":48,"value":1133},"\"LISTAGG\", \"DATEADD\u002FDATEDIFF\", \"NVL\u002FDECODE\", \"type mapping\", \"text type\", \"VARBYTE\", \"recursive CTE\"",{"type":42,"tag":249,"props":1135,"children":1136},{},[1137],{"type":42,"tag":64,"props":1138,"children":1140},{"className":1139},[],[1141],{"type":48,"value":1142},"references\u002Fredshift-sql-functions-types.md",{"type":42,"tag":222,"props":1144,"children":1145},{},[1146,1151],{"type":42,"tag":249,"props":1147,"children":1148},{},[1149],{"type":48,"value":1150},"\"QUALIFY\", \"PIVOT\u002FUNPIVOT\", \"MERGE\", \"TOP N\", \"SUBSTR error\", \"UNIQUE\u002FPK not enforced\", \"trailing blanks\", \"leader-node function\", \"JSON\", \"SUPER\", \"PartiQL\", \"nested\u002Fsemi-structured data\"",{"type":42,"tag":249,"props":1152,"children":1153},{},[1154],{"type":42,"tag":64,"props":1155,"children":1157},{"className":1156},[],[1158],{"type":48,"value":1159},"references\u002Fredshift-sql-extensions-semantics.md",{"type":42,"tag":222,"props":1161,"children":1162},{},[1163,1173],{"type":42,"tag":249,"props":1164,"children":1165},{},[1166,1168],{"type":48,"value":1167},"\"system view\", \"SVV_\u002FSYS_\", \"SHOW commands\", \"STL vs SYS\", \"list tables\", \"distkey\u002Fsortkey lookup\", \"datashare discovery\", \"2-part vs 3-part\", \"permission denied\", \"GRANT\", \"privileges\", ",{"type":42,"tag":96,"props":1169,"children":1170},{},[1171],{"type":48,"value":1172},"\"relation\u002Ftable does not exist\"",{"type":42,"tag":249,"props":1174,"children":1175},{},[1176],{"type":42,"tag":64,"props":1177,"children":1179},{"className":1178},[],[1180],{"type":48,"value":408},{"type":42,"tag":222,"props":1182,"children":1183},{},[1184,1189],{"type":42,"tag":249,"props":1185,"children":1186},{},[1187],{"type":48,"value":1188},"\"how do I write SQL\", \"PostgreSQL vs Redshift\", \"which SQL reference\", general dialect question",{"type":42,"tag":249,"props":1190,"children":1191},{},[1192,1197],{"type":42,"tag":64,"props":1193,"children":1195},{"className":1194},[],[1196],{"type":48,"value":108},{"type":48,"value":1198}," (index of the 6 SQL references + PostgreSQL-vs-Redshift failure table)",{"type":42,"tag":222,"props":1200,"children":1201},{},[1202,1207],{"type":42,"tag":249,"props":1203,"children":1204},{},[1205],{"type":48,"value":1206},"\"COPY failed\", \"load error\", \"Data API poll\", \"async query\", \"Data API throttle\"",{"type":42,"tag":249,"props":1208,"children":1209},{},[1210],{"type":42,"tag":64,"props":1211,"children":1213},{"className":1212},[],[1214],{"type":48,"value":874},{"type":42,"tag":222,"props":1216,"children":1217},{},[1218,1223],{"type":42,"tag":249,"props":1219,"children":1220},{},[1221],{"type":48,"value":1222},"\"materialized view\", \"MV refresh\", \"AUTO REFRESH\", \"stale view\"",{"type":42,"tag":249,"props":1224,"children":1225},{},[1226],{"type":42,"tag":64,"props":1227,"children":1229},{"className":1228},[],[1230],{"type":48,"value":1231},"references\u002Fredshift-sql-materialized-views.md",{"type":42,"tag":222,"props":1233,"children":1234},{},[1235,1240],{"type":42,"tag":249,"props":1236,"children":1237},{},[1238],{"type":48,"value":1239},"General Redshift question not matching above",{"type":42,"tag":249,"props":1241,"children":1242},{},[1243],{"type":48,"value":1244},"Answer directly from general knowledge",{"type":42,"tag":222,"props":1246,"children":1247},{},[1248,1253],{"type":42,"tag":249,"props":1249,"children":1250},{},[1251],{"type":48,"value":1252},"Aurora, RDS, DynamoDB, Athena (non-Redshift)",{"type":42,"tag":249,"props":1254,"children":1255},{},[1256,1261],{"type":42,"tag":96,"props":1257,"children":1258},{},[1259],{"type":48,"value":1260},"REFUSE.",{"type":48,"value":1262}," State this skill is for Amazon Redshift only. Do not provide guidance for other database services.",{"type":42,"tag":51,"props":1264,"children":1266},{"id":1265},"data-api-quick-reference",[1267],{"type":48,"value":1268},"Data API Quick Reference",{"type":42,"tag":58,"props":1270,"children":1271},{},[1272,1274,1285,1287,1293,1294,1300],{"type":48,"value":1273},"→ ",{"type":42,"tag":96,"props":1275,"children":1276},{},[1277,1278,1283],{"type":48,"value":402},{"type":42,"tag":64,"props":1279,"children":1281},{"className":1280},[],[1282],{"type":48,"value":874},{"type":48,"value":1284}," before answering ANY Data API, COPY-error, or async-query question.",{"type":48,"value":1286}," It carries the bounded poll loop, the ",{"type":42,"tag":64,"props":1288,"children":1290},{"className":1289},[],[1291],{"type":48,"value":1292},"HasResultSet",{"type":48,"value":641},{"type":42,"tag":64,"props":1295,"children":1297},{"className":1296},[],[1298],{"type":48,"value":1299},"ResourceNotFoundException",{"type":48,"value":1301}," handling, the per-target parameters, and the auth options.",{"type":42,"tag":58,"props":1303,"children":1304},{},[1305,1307,1312,1314,1320,1322,1327,1329,1334],{"type":48,"value":1306},"Data API calls are ",{"type":42,"tag":96,"props":1308,"children":1309},{},[1310],{"type":48,"value":1311},"async by default",{"type":48,"value":1313}," — use long polling (",{"type":42,"tag":64,"props":1315,"children":1317},{"className":1316},[],[1318],{"type":48,"value":1319},"--wait-time-seconds",{"type":48,"value":1321},", 1–30)\nrather than blind sleeps, and keep a bounded loop for work that can exceed 30s.\nServerless takes ",{"type":42,"tag":64,"props":1323,"children":1325},{"className":1324},[],[1326],{"type":48,"value":186},{"type":48,"value":1328},", provisioned takes ",{"type":42,"tag":64,"props":1330,"children":1332},{"className":1331},[],[1333],{"type":48,"value":210},{"type":48,"value":110},{"items":1336,"total":1440},[1337,1354,1369,1384,1399,1409,1424],{"slug":1338,"name":1338,"fn":1339,"description":1340,"org":1341,"tags":1342,"stars":24,"repoUrl":25,"updatedAt":1353},"agents-build","add capabilities to existing agent projects","Use to extend an existing agent project with memory, app integration, VPC, multi-agent, migration, model, browser, code interpreter, payments, or resource removal. Triggers: \"add memory\", \"remember across sessions\", \"call agent from app\", \"invoke agent from code\", \"agent auth\", \"streaming\", \"VPC\", \"VPC connectivity\", \"can't reach from VPC\", \"multi-agent\", \"A2A\", \"A2A auth\", \"orchestrator not delegating\", \"specialist not called\", \"migrate Bedrock Agent\", \"migration issue\", \"change model\", \"browser tool\", \"code interpreter\", \"delete agent\", \"tear down\", \"agentcore remove\", \"cross-account memory\", \"add payments capability to my agent\", \"wire payments plugin\", \"payments middleware for my agent\", \"integrate x402 payments with the agent I'm building\", \"enable my agent project with x402 payments\". External APIs via Gateway: use agents-connect. New project: use agents-get-started. CLI\u002Fdev-server errors: use agents-debug. Runtime x402 payments: use agents-pay. Migration-specific Strands vs LangGraph routes here.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1343,1346,1349,1350],{"name":1344,"slug":1345,"type":15},"Agents","agents",{"name":1347,"slug":1348,"type":15},"Automation","automation",{"name":23,"slug":8,"type":15},{"name":1351,"slug":1352,"type":15},"Engineering","engineering","2026-08-07T04:38:08.981896",{"slug":1355,"name":1355,"fn":1356,"description":1357,"org":1358,"tags":1359,"stars":24,"repoUrl":25,"updatedAt":1368},"agents-connect","connect agents to external services","Use when connecting your agent to external APIs, tools, or services via Gateway, or restricting tool access with Cedar policies. Handles gateway setup, target types, outbound auth (OAuth, API key, IAM), credentials, and Cedar policy authoring. Triggers on: \"connect to API\", \"add gateway\", \"connect to MCP server\", \"Lambda tools\", \"OpenAPI\", \"gateway target\", \"Cedar policy\", \"restrict tools\", \"policy engine\", \"gateway auth error\", \"store API key\", \"outbound credential\", \"env var API key\", \"API key None after deploy\", \"credential not available after deploy\", \"should this be a gateway target\", \"give my agent tools\", \"add tools to agent\". Not for inbound auth (who can call your agent) — use agents-harden. Not for debugging agent behavior — use agents-debug. Not for VPC networking errors (agent can't reach APIs due to VPC) — use agents-build. Not for creating or hosting a new MCP server project — use agents-get-started.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1360,1361,1364,1367],{"name":1344,"slug":1345,"type":15},{"name":1362,"slug":1363,"type":15},"API Development","api-development",{"name":1365,"slug":1366,"type":15},"Authentication","authentication",{"name":23,"slug":8,"type":15},"2026-07-16T06:00:38.866147",{"slug":1370,"name":1370,"fn":1371,"description":1372,"org":1373,"tags":1374,"stars":24,"repoUrl":25,"updatedAt":1383},"agents-debug","debug agent and environment issues","Use when your agent or environment is broken — wrong answers, errors, timeouts, tool failures, or CLI issues. Reads traces and logs to diagnose root causes. Also checks prerequisites when the CLI itself isn't working. Triggers on: \"agent not working\", \"wrong answer\", \"agent error\", \"tool call failing\", \"debug agent\", \"check logs\", \"read traces\", \"broken\", \"500 error\", \"424 error\", \"model access denied\", \"command not found\", \"stuck in DELETING\", \"maxVms exceeded\", \"cold start diagnosis\", \"cold start slow\", \"agentcore create error\", \"create failed\", \"exit code 7\", \"connection refused local dev\". Not for deploy failures — use agents-deploy. Not for performance tuning without errors — use agents-optimize. Not for VPC configuration — use agents-build. Not for observability setup or missing logs — use agents-optimize.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1375,1376,1377,1380],{"name":1344,"slug":1345,"type":15},{"name":23,"slug":8,"type":15},{"name":1378,"slug":1379,"type":15},"Debugging","debugging",{"name":1381,"slug":1382,"type":15},"Observability","observability","2026-07-16T06:00:44.679093",{"slug":1385,"name":1385,"fn":1386,"description":1387,"org":1388,"tags":1389,"stars":24,"repoUrl":25,"updatedAt":1398},"agents-deploy","deploy AI agents to AWS","Use when deploying your agent to AWS, or when a deploy has failed. Handles pre-flight validation, CDK\u002FIAM\u002Fquota error diagnosis, version management, rollback, and canary deployments. Triggers on: \"deploy my agent\", \"agentcore deploy\", \"deploy failed\", \"CDK error\", \"rollback\", \"canary deploy\", \"pin version\", \"redeploy\", \"deploy stuck\". Not for production hardening — use agents-harden. Not for adding capabilities before deploy — use agents-build or agents-connect. Not for VPC configuration errors — use agents-build.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1390,1391,1392,1395],{"name":1344,"slug":1345,"type":15},{"name":23,"slug":8,"type":15},{"name":1393,"slug":1394,"type":15},"CI\u002FCD","ci-cd",{"name":1396,"slug":1397,"type":15},"Deployment","deployment","2026-07-12T08:42:55.059577",{"slug":1400,"name":1400,"fn":1401,"description":1402,"org":1403,"tags":1404,"stars":24,"repoUrl":25,"updatedAt":1408},"agents-get-started","scaffold and deploy new agent projects","Use when a developer wants to create a new agent project or get started with AgentCore. Handles framework selection, project scaffolding, first deploy, and first invocation. Triggers on: \"build an agent\", \"create an agent\", \"get started\", \"new project\", \"agentcore create\", \"which framework\", \"Strands vs LangGraph\", \"hello world agent\", \"first agent\", \"create MCP server\", \"host MCP server\", \"agentcore dev\", \"dev server\", \"what port\", \"local development\". Not for adding capabilities to existing projects — use agents-build or agents-connect. Strands vs LangGraph in a migration context routes to agents-build, not here. Connecting to an existing MCP server routes to agents-connect, not here.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1405,1406,1407],{"name":1344,"slug":1345,"type":15},{"name":23,"slug":8,"type":15},{"name":1396,"slug":1397,"type":15},"2026-07-12T08:42:51.963247",{"slug":1410,"name":1410,"fn":1411,"description":1412,"org":1413,"tags":1414,"stars":24,"repoUrl":25,"updatedAt":1423},"agents-harden","harden agents for production","Use when preparing your agent for production — IAM scoping, inbound auth (JWT, SigV4), secrets management, cold start optimization, session lifecycle, rate limiting, input validation, and quota guidance. Triggers on: \"production checklist\", \"harden agent\", \"production ready\", \"secure agent\", \"inbound auth\", \"going live\", \"cold start optimization\", \"session lifecycle\", \"StopRuntimeSession\", \"quota\", \"throttling\", \"maxVms\", \"rate limit\", \"security audit of outbound API calls\", \"gateway target audit for production\", \"restrict who can call\", \"lock down endpoint\", \"only our app can call\". Not for Cedar tool-restriction policies — use agents-connect. Not for quality measurement — use agents-optimize. Not for outbound credential storage or API key wiring — use agents-connect. Not for A2A agent-to-agent auth — use agents-build. Cold start observation and diagnosis (not optimization) routes to agents-debug.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1415,1416,1417,1420],{"name":1344,"slug":1345,"type":15},{"name":23,"slug":8,"type":15},{"name":1418,"slug":1419,"type":15},"Best Practices","best-practices",{"name":1421,"slug":1422,"type":15},"Security","security","2026-07-16T06:00:42.174705",{"slug":1425,"name":1425,"fn":1426,"description":1427,"org":1428,"tags":1429,"stars":24,"repoUrl":25,"updatedAt":1439},"agents-optimize","optimize agent quality and performance","Use when measuring or improving agent quality and performance — set up evaluators, online monitoring, CI\u002FCD quality gates, observability, or cost optimization. Triggers on: \"evaluate my agent\", \"add evaluator\", \"measure quality\", \"quality gate\", \"run evals\", \"agent too slow\", \"why is it slow\", \"reduce latency\", \"set up observability\", \"CloudWatch dashboard\", \"how much does my agent cost\", \"cost optimization\", \"logs not showing up\", \"logs missing\", \"spans not found\", \"eval failing\", \"eval error\", \"dev traces\", \"local traces\", \"agentcore dev traces\", \"traces to CloudWatch\". Not for debugging errors or crashes — use agents-debug. Slow but correct routes here; broken routes to debug.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1430,1431,1432,1435,1436],{"name":1344,"slug":1345,"type":15},{"name":23,"slug":8,"type":15},{"name":1433,"slug":1434,"type":15},"Evals","evals",{"name":1381,"slug":1382,"type":15},{"name":1437,"slug":1438,"type":15},"Performance","performance","2026-07-12T08:42:56.488105",118,{"items":1442,"total":1560},[1443,1450,1457,1464,1471,1477,1484,1492,1506,1520,1533,1545],{"slug":1338,"name":1338,"fn":1339,"description":1340,"org":1444,"tags":1445,"stars":24,"repoUrl":25,"updatedAt":1353},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1446,1447,1448,1449],{"name":1344,"slug":1345,"type":15},{"name":1347,"slug":1348,"type":15},{"name":23,"slug":8,"type":15},{"name":1351,"slug":1352,"type":15},{"slug":1355,"name":1355,"fn":1356,"description":1357,"org":1451,"tags":1452,"stars":24,"repoUrl":25,"updatedAt":1368},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1453,1454,1455,1456],{"name":1344,"slug":1345,"type":15},{"name":1362,"slug":1363,"type":15},{"name":1365,"slug":1366,"type":15},{"name":23,"slug":8,"type":15},{"slug":1370,"name":1370,"fn":1371,"description":1372,"org":1458,"tags":1459,"stars":24,"repoUrl":25,"updatedAt":1383},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1460,1461,1462,1463],{"name":1344,"slug":1345,"type":15},{"name":23,"slug":8,"type":15},{"name":1378,"slug":1379,"type":15},{"name":1381,"slug":1382,"type":15},{"slug":1385,"name":1385,"fn":1386,"description":1387,"org":1465,"tags":1466,"stars":24,"repoUrl":25,"updatedAt":1398},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1467,1468,1469,1470],{"name":1344,"slug":1345,"type":15},{"name":23,"slug":8,"type":15},{"name":1393,"slug":1394,"type":15},{"name":1396,"slug":1397,"type":15},{"slug":1400,"name":1400,"fn":1401,"description":1402,"org":1472,"tags":1473,"stars":24,"repoUrl":25,"updatedAt":1408},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1474,1475,1476],{"name":1344,"slug":1345,"type":15},{"name":23,"slug":8,"type":15},{"name":1396,"slug":1397,"type":15},{"slug":1410,"name":1410,"fn":1411,"description":1412,"org":1478,"tags":1479,"stars":24,"repoUrl":25,"updatedAt":1423},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1480,1481,1482,1483],{"name":1344,"slug":1345,"type":15},{"name":23,"slug":8,"type":15},{"name":1418,"slug":1419,"type":15},{"name":1421,"slug":1422,"type":15},{"slug":1425,"name":1425,"fn":1426,"description":1427,"org":1485,"tags":1486,"stars":24,"repoUrl":25,"updatedAt":1439},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1487,1488,1489,1490,1491],{"name":1344,"slug":1345,"type":15},{"name":23,"slug":8,"type":15},{"name":1433,"slug":1434,"type":15},{"name":1381,"slug":1382,"type":15},{"name":1437,"slug":1438,"type":15},{"slug":1493,"name":1493,"fn":1494,"description":1495,"org":1496,"tags":1497,"stars":24,"repoUrl":25,"updatedAt":1505},"agents-pay","handle x402 payments for agent tasks","Use when THIS agent needs to pay for x402-protected content at runtime: hitting a paywall mid-task, settling it via AgentCore Payments, and applying operator-defined spend limits. Covers payment setup, policy, session budgets, and troubleshooting. Triggers on: \"my agent hit a 402 while calling an API\", \"a tool call returned 402 Payment Required\", \"my agent needs to pay for x402-protected content\", \"let the agent pay for content, capped at $5 per session\", \"set a spend limit for the agent\", \"ProcessPayment failed\", or \"why did my agent refuse to pay\". Not for BUILDING payment capability for end users, including wallets and framework middleware; use agents-build and references\u002Fpayments.md. For non-paid APIs via Gateway use agents-connect. For inbound auth use agents-harden. For project scaffolding use agents-get-started.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1498,1499,1500,1503],{"name":1344,"slug":1345,"type":15},{"name":1347,"slug":1348,"type":15},{"name":1501,"slug":1502,"type":15},"Payments","payments",{"name":1504,"slug":1504,"type":15},"x402","2026-08-10T04:16:31.844309",{"slug":1507,"name":1507,"fn":1508,"description":1509,"org":1510,"tags":1511,"stars":24,"repoUrl":25,"updatedAt":1519},"amazon-aurora-mysql","manage Amazon Aurora MySQL clusters","Amazon Aurora MySQL — creates, modifies, and advises on Aurora MySQL clusters specifically (MySQL-compatible engine, Aurora serverless, parallel query). Trigger for Aurora MySQL cluster operations, ACU sizing, I\u002FO-Optimized storage, commitment pricing, or MySQL upgrade planning. Aurora MySQL uses full (VPC-based) configuration — express configuration is PostgreSQL-only. For Aurora PostgreSQL, use amazon-aurora-postgresql instead. Contains safety guardrails and response templates that override defaults.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1512,1513,1514,1517],{"name":23,"slug":8,"type":15},{"name":17,"slug":18,"type":15},{"name":1515,"slug":1516,"type":15},"MySQL","mysql",{"name":170,"slug":1518,"type":15},"serverless","2026-07-12T08:43:13.27939",{"slug":1521,"name":1521,"fn":1522,"description":1523,"org":1524,"tags":1525,"stars":24,"repoUrl":25,"updatedAt":1532},"amazon-aurora-postgresql","configure Amazon Aurora PostgreSQL clusters","Amazon Aurora PostgreSQL — creates, modifies, and advises on Aurora PostgreSQL clusters specifically (PostgreSQL-compatible engine, Aurora serverless, express configuration, pgvector, Babelfish). Trigger for Aurora PostgreSQL cluster operations, express-configuration quick-start, ACU sizing, I\u002FO-Optimized storage, commitment pricing, or PostgreSQL upgrade planning. For Aurora MySQL, use amazon-aurora-mysql instead. Contains safety guardrails, express-first routing, and response templates that override defaults.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1526,1527,1528,1531],{"name":23,"slug":8,"type":15},{"name":17,"slug":18,"type":15},{"name":1529,"slug":1530,"type":15},"PostgreSQL","postgresql",{"name":170,"slug":1518,"type":15},"2026-07-16T06:00:34.789624",{"slug":1534,"name":1534,"fn":1535,"description":1536,"org":1537,"tags":1538,"stars":24,"repoUrl":25,"updatedAt":1544},"amazon-bedrock","build generative AI apps with Amazon Bedrock","Builds generative AI applications on Amazon Bedrock. Covers model invocation (Converse API, InvokeModel), RAG with Knowledge Bases, Bedrock Agents, Guardrails, and AgentCore (including the Harness managed agent loop). Use when invoking models, setting up Knowledge Bases, creating agents, applying guardrails, deploying to AgentCore, migrating\u002Fporting\u002Fconverting a Bedrock Agent (including inline agents) to an AgentCore Harness, troubleshooting Bedrock errors (ThrottlingException, AccessDeniedException), or choosing models (Claude, Llama, Nova, Titan). ALSO USE for prompt caching, quota health checks and throttling diagnosis, cost attribution, migrating between Claude model generations, chunking strategies, API selection (Converse vs InvokeModel), and model selection. Also covers AgentCore Payments setup (x402, microtransactions, Payment Manager, Coinbase CDP, Stripe Privy, 402 Payment Required, paid endpoint). NOT for custom model training, Rekognition, or Comprehend.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1539,1540,1541],{"name":1344,"slug":1345,"type":15},{"name":23,"slug":8,"type":15},{"name":1542,"slug":1543,"type":15},"LLM","llm","2026-08-07T04:38:13.03499",{"slug":1546,"name":1546,"fn":1547,"description":1548,"org":1549,"tags":1550,"stars":24,"repoUrl":25,"updatedAt":1559},"amazon-documentdb","manage Amazon DocumentDB clusters","Manages Amazon DocumentDB end-to-end — serverless-on-8.0 cluster setup, TLS\u002FVPC\u002Fdriver config, flexible-schema and vector-search data modeling, MongoDB compatibility assessment, DMS-based migration, slow-query diagnosis, major version upgrades (4.0→5.0→8.0), Well-Architected reviews (41-check wa_review.py), cost estimation, and security hardening. Retrieve for every DocumentDB question and when the user asks to set up or migrate MongoDB to AWS — DocumentDB is AWS's MongoDB-compatible managed database. Triggers: JSON document store, document database, MongoDB on AWS, Nested fields, Lambda cannot connect, TLS handshake, VPC port 27017, IAM auth, Secrets Manager, encryption at rest, $graphLookup, flexible schema, COLLSCAN, compound index, DMS migration, CDC cutover, $vectorSearch, RAG, Global Clusters, DR replication, cost sizing, audit, health check, production-readiness.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1551,1552,1553,1556],{"name":23,"slug":8,"type":15},{"name":17,"slug":18,"type":15},{"name":1554,"slug":1555,"type":15},"MongoDB","mongodb",{"name":1557,"slug":1558,"type":15},"NoSQL","nosql","2026-07-12T08:43:00.455878",119]