Ömer Toraman
10/19/2021, 4:48 PMsst.json
{
"name": "someName",
"region": "us-east-1",
"main": "stacks/index.ts"
}
stacks/index.ts
import * as sst from "@serverless-stack/resources";
import { MainStack } from "./MainStack";
export default function main(app: <http://sst.App|sst.App>): void {
// Set default runtime for all functions
app.setDefaultFunctionProps({
runtime: "nodejs14.x"
});
new MainStack(app, "someOtherName");
}
thdxr
10/19/2021, 5:04 PMappname-stackname-stage
Ömer Toraman
10/19/2021, 5:04 PMstackname
is the second parameter to the new MainStack(app, ‘’) right?thdxr
10/19/2021, 5:05 PMsuper(app, name)
in the constructorÖmer Toraman
10/19/2021, 5:06 PMthdxr
10/19/2021, 5:06 PMclass MyStack(app) {
super(app, "my-stack")
}
thdxr
10/19/2021, 5:06 PM