{"record":{"id":"3c2b0198e1b1b7a0","repo":"anomalyco/sst","slug":"storage-cannot-be-greater-than-65536-gb-64-tb-fo","errorCode":null,"errorMessage":"Storage cannot be greater than 65536 GB (64 TB) for the ${name} MySQL database.","messagePattern":"Storage cannot be greater than 65536 GB \\(64 TB\\) for the (.+?) MySQL database\\.","errorType":"validation","errorClass":"VisibleError","httpStatus":null,"severity":"error","filePath":"platform/src/components/aws/mysql.ts","lineNumber":570,"sourceCode":"        );\n        return $jsonParse(secret.secretString).apply(\n          (v) => v.password as string,\n        );\n      });\n\n      return { instance, proxy, password };\n    }\n\n    function normalizeStorage() {\n      return output(args.storage ?? \"20 GB\").apply((v) => {\n        const size = toGBs(v);\n        if (size < 20) {\n          throw new VisibleError(\n            `Storage must be at least 20 GB for the ${name} MySQL database.`,\n          );\n        }\n        if (size > 65536) {\n          throw new VisibleError(\n            `Storage cannot be greater than 65536 GB (64 TB) for the ${name} MySQL database.`,\n          );\n        }\n        return size;\n      });\n    }\n\n    function normalizeVpc() {\n      // \"vpc\" is a Vpc.v1 component\n      if (args.vpc instanceof VpcV1) {\n        throw new VisibleError(\n          `You are using the \"Vpc.v1\" component. Please migrate to the latest \"Vpc\" component.`,\n        );\n      }\n\n      // \"vpc\" is a Vpc component\n      if (args.vpc instanceof Vpc) {\n        return {","sourceCodeStart":552,"sourceCodeEnd":588,"githubUrl":"https://github.com/anomalyco/sst/blob/a0bd20f762883e72a35caccb4896c42ce5b3f707/platform/src/components/aws/mysql.ts#L552-L588","documentation":"SST caps MySQL RDS storage at 65536 GB (64 TB), the AWS limit for the gp2/gp3 storage range used here. Values above that throw this VisibleError during storage normalization.","triggerScenarios":"new sst.aws.MySql(\"MyDb\", { storage: \"70000 GB\" }) or any storage expression converting to more than 65536 GB.","commonSituations":"Trying to provision a very large warehouse-style database on RDS MySQL; mis-specified units (e.g. \"70000 GB\" meant to be MB or a different limit from another provider).","solutions":["Reduce the storage argument to 65536 GB (64 TB) or less","Let RDS storage autoscaling grow the volume instead of pre-allocating the max","If you truly need more, use a different datastore (e.g. Aurora with its own limits) or shard across instances"],"exampleFix":"// before\nnew sst.aws.MySql(\"MyDb\", { storage: \"70000 GB\" });\n// after\nnew sst.aws.MySql(\"MyDb\", { storage: \"65536 GB\" });","handlingStrategy":"validation","validationCode":"const gb = toGBs(args.storage ?? \"20 GB\");\nif (gb > 65536) throw new Error(`MySQL storage must be <= 65536 GB, got ${gb} GB`);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Clamp storage to 65536 GB in config generation","Use RDS storage autoscaling rather than pre-allocating huge volumes","Cross-check limits against AWS docs for the storage type in use","Centralize RDS sizing constants in shared config"],"tags":["mysql","aws","rds","validation"],"backgroundTag":"resource-size-above-maximum","analyzedSha":"a0bd20f762883e72a35caccb4896c42ce5b3f707","analyzedAt":"2026-08-30T11:26:00.383Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}