Hello guys, quick question: is the guide outdated?...
# guide
t
Hello guys, quick question: is the guide outdated? I was just looking to the “infrastructure-as-code” link and looks like it is a
yml
file which I remember is the way to do on serverlessframework but now that everything is SST and CDK I guess there is another way?
m
Can you drop the link here?
f
Hey @Tonny (sstNerd), yeah the guide has a section for legacy Serverless Framework setup, and this chapter is part of that section
Here’s the SST chapter on configuring DynamoDB tables https://serverless-stack.com/chapters/create-a-dynamodb-table-in-sst.html
Is there a specific config you are looking to set?
t
Hey, thanks for getting back on me here @Frank so I just wanted to pre-configure the whole app through either a .yml file or whatever else that SST uses now (not just the DB but everything)
f
Gotcha. Yeah unlike Serverless Framework, SST apps are not defined in yaml files. SST has build blocks like
Api
,
Table
, etc. Each is a class, and you define ur app in actual code.
Maybe playaround w/ this example https://serverless-stack.com/examples/how-to-use-dynamodb-in-your-serverless-app.html. It will help you see the difference.
t
Sounds good, I will read about it ty!