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

**URL:** <https://forum.serverless.com/t/aws-lambda-typescript-template-creates-serverless-ts-file-but-i-want-serverless-yml-file-instead/12737>\
**Category:** Serverless Framework\
**Created:** [October 2, 2020, 6:43pm UTC](https://forum.serverless.com/t/aws-lambda-typescript-template-creates-serverless-ts-file-but-i-want-serverless-yml-file-instead/12737 "2020-10-02T18:43:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![LMartinez-Py](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@LMartinez-Py](https://forum.serverless.com/u/LMartinez-Py)\
**Post date:** [October 2, 2020, 6:43pm UTC](https://forum.serverless.com/t/aws-lambda-typescript-template-creates-serverless-ts-file-but-i-want-serverless-yml-file-instead/12737/1 "2020-10-02T18:43:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![alexvdvalk](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/alexvdvalk/32/4449_2.png) [@alexvdvalk](https://forum.serverless.com/u/alexvdvalk)\
**Post date:** [October 4, 2020, 2:21pm UTC](https://forum.serverless.com/t/aws-lambda-typescript-template-creates-serverless-ts-file-but-i-want-serverless-yml-file-instead/12737/2 "2020-10-04T14:21:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![LMartinez-Py](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@LMartinez-Py](https://forum.serverless.com/u/LMartinez-Py)\
**Post date:** [October 5, 2020, 3:07pm UTC](https://forum.serverless.com/t/aws-lambda-typescript-template-creates-serverless-ts-file-but-i-want-serverless-yml-file-instead/12737/3 "2020-10-05T15:07:41Z")

</div>

Mostly because of familiarity and team direction.

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

---

<div class="post-metadata">

**Author:** ![alexvdvalk](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/alexvdvalk/32/4449_2.png) [@alexvdvalk](https://forum.serverless.com/u/alexvdvalk)\
**Post date:** [October 5, 2020, 4:20pm UTC](https://forum.serverless.com/t/aws-lambda-typescript-template-creates-serverless-ts-file-but-i-want-serverless-yml-file-instead/12737/4 "2020-10-05T16:20:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bryceroney](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bryceroney/32/4989_2.png) [@bryceroney](https://forum.serverless.com/u/bryceroney)\
**Post date:** [January 5, 2021, 10:16pm UTC](https://forum.serverless.com/t/aws-lambda-typescript-template-creates-serverless-ts-file-but-i-want-serverless-yml-file-instead/12737/5 "2021-01-05T22:16:56Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![yehonadav](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/yehonadav/32/6208_2.png) [@yehonadav](https://forum.serverless.com/u/yehonadav)\
**Post date:** [October 29, 2021, 4:20pm UTC](https://forum.serverless.com/t/aws-lambda-typescript-template-creates-serverless-ts-file-but-i-want-serverless-yml-file-instead/12737/6 "2021-10-29T16:20:57Z")

</div>

Yes, literal strings would work

---

<div class="post-metadata">

**Author:** ![user1029](https://avatars.discourse-cdn.com/v4/letter/u/4bbf92/32.png) [@user1029](https://forum.serverless.com/u/user1029)\
**Post date:** [March 2, 2022, 11:19pm UTC](https://forum.serverless.com/t/aws-lambda-typescript-template-creates-serverless-ts-file-but-i-want-serverless-yml-file-instead/12737/7 "2022-03-02T23:19:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![krishay.baxter](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@krishay.baxter](https://forum.serverless.com/u/krishay.baxter)\
**Post date:** [March 15, 2022, 2:02pm UTC](https://forum.serverless.com/t/aws-lambda-typescript-template-creates-serverless-ts-file-but-i-want-serverless-yml-file-instead/12737/8 "2022-03-15T14:02:55Z")

</div>

With the typescript based config file, how do I use Serverless variables, just as literal strings?  
[Showbox](https://showbox.bio/) [jiofi.local.html](https://jfi.uno/jiofilocalhtml)

---

<div class="post-metadata">

**Author:** ![CodySwannGT](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/codyswanngt/32/3560_2.png) [@CodySwannGT](https://forum.serverless.com/u/CodySwannGT)\
**Post date:** [October 13, 2022, 6:12pm UTC](https://forum.serverless.com/t/aws-lambda-typescript-template-creates-serverless-ts-file-but-i-want-serverless-yml-file-instead/12737/9 "2022-10-13T18:12:27Z")

</div>

Simple. The serverless dashboard service only supports serverless.yml  
 ![Screen Shot 2022-10-13 at 2.12.18 PM](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/3/35398084456879fec39a79160eac90acdb839df1.png)
