typescript
typescript copied to clipboard
Migration from .yaml
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
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 !
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?
https://github.com/wpkyoto/serverless-yaml2ts