{"record":{"id":"ec836221cbde39e2","repo":"anomalyco/sst","slug":"reader-endpoint-is-not-currently-supported-for-rds","errorCode":null,"errorMessage":"Reader endpoint is not currently supported for RDS Proxy. Please contact us on Discord or open a GitHub issue.","messagePattern":"Reader endpoint is not currently supported for RDS Proxy\\. Please contact us on Discord or open a GitHub issue\\.","errorType":"exception","errorClass":"VisibleError","httpStatus":null,"severity":"error","filePath":"platform/src/components/aws/aurora.ts","lineNumber":1251,"sourceCode":"  /**\n   * The host of the database.\n   */\n  public get host() {\n    if (this.dev?.enabled) return this.dev.host;\n    return all([this.cluster!.endpoint, this.proxy!]).apply(\n      ([endpoint, proxy]) => proxy?.endpoint ?? output(endpoint.split(\":\")[0]),\n    );\n  }\n\n  /**\n   * The reader endpoint of the database.\n   */\n  public get reader() {\n    if (this.dev?.enabled) return this.dev.host;\n    return all([this.cluster!.readerEndpoint, this.proxy!]).apply(\n      ([endpoint, proxy]) => {\n        if (proxy) {\n          throw new VisibleError(\n            \"Reader endpoint is not currently supported for RDS Proxy. Please contact us on Discord or open a GitHub issue.\",\n          );\n        }\n        return output(endpoint.split(\":\")[0]);\n      },\n    );\n  }\n\n  public get nodes() {\n    return {\n      cluster: this.cluster,\n      instance: this.instance,\n    };\n  }\n\n  /** @internal */\n  public getSSTLink() {\n    return {","sourceCodeStart":1233,"sourceCodeEnd":1269,"githubUrl":"https://github.com/anomalyco/sst/blob/a0bd20f762883e72a35caccb4896c42ce5b3f707/platform/src/components/aws/aurora.ts#L1233-L1269","documentation":"The `reader` getter on the Aurora component returns the reader endpoint of the cluster. When an RDS Proxy is configured for the cluster, SST does not support routing reads through the proxy's reader endpoint, so it throws this VisibleError instead of returning a wrong value. The message asks users to report the need on Discord/GitHub so maintainers can prioritize support.","triggerScenarios":"Accessing `aurora.reader` while `proxy` is enabled in the Aurora component args (e.g. `rds.Proxy` created and passed in), in a non-dev (deployed) stage. In dev mode (`sst dev`) it returns `dev.host` without hitting this check.","commonSituations":"Developers add an RDS Proxy for connection pooling and then try to read the reader endpoint for read replicas; upgrading SST with a proxy config from an earlier version.","solutions":["Remove the `proxy` option from the Aurora component args so `reader` returns the cluster reader endpoint directly","Access `aurora.cluster.readerEndpoint` (parse host) directly instead of `aurora.reader` when a proxy is configured","Disable the proxy temporarily until RDS Proxy reader support is added, or file/upvote the GitHub issue"],"exampleFix":"// before\nnew sst.aws.Aurora(\"MyDB\", { proxy: true });\nconst host = aurora.reader;\n// after\nnew sst.aws.Aurora(\"MyDB\", {});\nconst host = aurora.reader;","handlingStrategy":"validation","validationCode":"if (aurora.args?.proxy) {\n  throw new Error(\"Use cluster.readerEndpoint directly; reader is unsupported with RDS Proxy.\");\n}\nconst readerHost = aurora.reader;","typeGuard":"function supportsReader(a: { proxy?: unknown }): boolean {\n  return !a.proxy;\n}","tryCatchPattern":null,"preventionTips":["Never enable `proxy` if your app reads via `aurora.reader`","Read the reader host straight from `aurora.cluster.readerEndpoint` when using a proxy","Check component docs for proxy limitations before combining options"],"tags":["aws","rds-proxy","aurora","unsupported-feature"],"backgroundTag":"rds-proxy-reader-unsupported","analyzedSha":"a0bd20f762883e72a35caccb4896c42ce5b3f707","analyzedAt":"2026-08-30T11:26:00.383Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}