admin管理员组文章数量:1021879
SST (Serverless Stack) is an open-source framework developed by Anomaly Innovations that helps you build and deploy serverless applications on AWS. It offers several features and tools to make developing serverless applications easier and more efficient.
I am migrating from the V2 to V3.3.21 so this is my sst.config.ts
import { SSTConfig } from "sst";
import { MyStack } from "./stack/MyStack";
export default {
config(_input) {
return {
name: "app",
region: "us-east-1",
};
},
stacks(app) {
app.setDefaultFunctionProps({
runtime: "nodejs20.x",//runtime for the generated functions to ss
});
app.addDefaultFunctionPermissions("*");//lambda functions permissions
app.stack(MyStack);
// app.stack(Dynamo);
},
} satisfies SSTConfig;
and I wish to know where is the SSTConfig gone? Or what is the replacement for it? Thank you for your help. I've searched for the whole web, but this version is recent (at the moment I write this post), so I found any docs about the migration from V2.x to V3.3.21
SST (Serverless Stack) is an open-source framework developed by Anomaly Innovations that helps you build and deploy serverless applications on AWS. It offers several features and tools to make developing serverless applications easier and more efficient.
I am migrating from the V2 to V3.3.21 so this is my sst.config.ts
import { SSTConfig } from "sst";
import { MyStack } from "./stack/MyStack";
export default {
config(_input) {
return {
name: "app",
region: "us-east-1",
};
},
stacks(app) {
app.setDefaultFunctionProps({
runtime: "nodejs20.x",//runtime for the generated functions to ss
});
app.addDefaultFunctionPermissions("*");//lambda functions permissions
app.stack(MyStack);
// app.stack(Dynamo);
},
} satisfies SSTConfig;
and I wish to know where is the SSTConfig gone? Or what is the replacement for it? Thank you for your help. I've searched for the whole web, but this version is recent (at the moment I write this post), so I found any docs about the migration from V2.x to V3.3.21
Share Improve this question asked Nov 19, 2024 at 7:06 AroAro 3091 gold badge4 silver badges12 bronze badges1 Answer
Reset to default 0Probably you already fix this, but here it goes. In sst v3 the SSTConfig does not exist anymore and you have to call the function config like this:
/// <reference path="./.sst/platform/config.d.ts" />
export default $config({
app(input) {}
})
Inside the return of the app you set the main parameters of your app, and in the return of the config you set the components you want to create (functions, cron, etc)
SST (Serverless Stack) is an open-source framework developed by Anomaly Innovations that helps you build and deploy serverless applications on AWS. It offers several features and tools to make developing serverless applications easier and more efficient.
I am migrating from the V2 to V3.3.21 so this is my sst.config.ts
import { SSTConfig } from "sst";
import { MyStack } from "./stack/MyStack";
export default {
config(_input) {
return {
name: "app",
region: "us-east-1",
};
},
stacks(app) {
app.setDefaultFunctionProps({
runtime: "nodejs20.x",//runtime for the generated functions to ss
});
app.addDefaultFunctionPermissions("*");//lambda functions permissions
app.stack(MyStack);
// app.stack(Dynamo);
},
} satisfies SSTConfig;
and I wish to know where is the SSTConfig gone? Or what is the replacement for it? Thank you for your help. I've searched for the whole web, but this version is recent (at the moment I write this post), so I found any docs about the migration from V2.x to V3.3.21
SST (Serverless Stack) is an open-source framework developed by Anomaly Innovations that helps you build and deploy serverless applications on AWS. It offers several features and tools to make developing serverless applications easier and more efficient.
I am migrating from the V2 to V3.3.21 so this is my sst.config.ts
import { SSTConfig } from "sst";
import { MyStack } from "./stack/MyStack";
export default {
config(_input) {
return {
name: "app",
region: "us-east-1",
};
},
stacks(app) {
app.setDefaultFunctionProps({
runtime: "nodejs20.x",//runtime for the generated functions to ss
});
app.addDefaultFunctionPermissions("*");//lambda functions permissions
app.stack(MyStack);
// app.stack(Dynamo);
},
} satisfies SSTConfig;
and I wish to know where is the SSTConfig gone? Or what is the replacement for it? Thank you for your help. I've searched for the whole web, but this version is recent (at the moment I write this post), so I found any docs about the migration from V2.x to V3.3.21
Share Improve this question asked Nov 19, 2024 at 7:06 AroAro 3091 gold badge4 silver badges12 bronze badges1 Answer
Reset to default 0Probably you already fix this, but here it goes. In sst v3 the SSTConfig does not exist anymore and you have to call the function config like this:
/// <reference path="./.sst/platform/config.d.ts" />
export default $config({
app(input) {}
})
Inside the return of the app you set the main parameters of your app, and in the return of the config you set the components you want to create (functions, cron, etc)
本文标签: amazon web servicesSST(Serverless Stack)Migration from the V2 to V3321Stack Overflow
版权声明:本文标题:amazon web services - SST(Serverless Stack) : Migration from the V2 to V3.3.21 - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745578856a2157187.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论