typescript icon indicating copy to clipboard operation
typescript copied to clipboard

Migration from .yaml

Open ggmartins opened this issue 3 years ago • 3 comments

Dear,

thanks for your great work on serverless/typescript. I have some legacy (sls 1.14) code I'm trying to migrate from .yaml. I'd like to know if there is any documentation/reference implementation for the syntax required to wire up various components like policies, sns topics, roles etc.

Thanks,

G

ggmartins avatar Jun 09 '21 21:06 ggmartins

Hello @ggmartins and thanks for your interest in this project :)

If I understood correctly, you're trying to migrate from serverless.yaml to serverless.ts service definition file ? Be aware that using Typescript definition file is only available since https://github.com/serverless/serverless/releases/tag/v1.72.0 Apart from that, you can find the related documentation here : https://www.serverless.com/framework/docs/providers/aws/guide/intro#services

Let me know if this helps !

fredericbarthelet avatar Jun 10 '21 08:06 fredericbarthelet

Related question, is anyone aware of an automated converter that has been written? I.e. a script that would just read in the YAML and spit out a TS file?

taschmidt avatar Jul 15 '22 14:07 taschmidt

https://github.com/wpkyoto/serverless-yaml2ts

AlexMabry avatar Oct 06 '22 15:10 AlexMabry