Skip to main content

Size

caution

This is the SST v1.x Constructs doc. SST v2 is now released. If you are using v2, see the v2 Constructs doc. If you are looking to upgrade to v2, check out the upgrade steps.

SST makes it easy to specify size values as typed string values.

Type : ${number} MB | ${number} GB

Examples

Function memory size

new Function(this, "MyFunction", {
handler: "src/lambda.main",
memorySize: "512 MB",
});

Function disk size

new Function(this, "MyFunction", {
handler: "src/lambda.main",
diskSize: "5 GB",
});