AWS-Lambda-Typescript template creates serverless.ts file, but I want serverless.yml file instead

I am creating a simple Lambda/Typescript using the provided default templates. In the root path, there is no .yml.

I am wondering how to ensure that .YML is used instead of serverless.ts.

1 Like

What is the reason for you wanting to use the yaml file? The serverless.ts file introdces type autocompletion which is really helpful when building serverless apps, especially when you have to reference things between files.

1 Like

Mostly because of familiarity and team direction.

I will look into this and see if I can advocate for a ts file.

I have the same problem with some legacy apps, but the Typescipt autocompletion and imports /exports are so useful. So Iā€™m trying to work out how I can migrate my old yaml files into the new TS format.

Apologies for hijacking this thread, but I have a similar question. With the typescript based config file, how do I use Serverless variables, just as literal strings?

Yes, literal strings would work

Any updates on this issue? I have the same question.

I would like to use a yml serverless file in a typescript project, but I want to know if this is fully supported.

With the typescript based config file, how do I use Serverless variables, just as literal strings?
Showbox jiofi.local.html

Simple. The serverless dashboard service only supports serverless.yml
Screen Shot 2022-10-13 at 2.12.18 PM