How to declare conditional resource in serverless framework

Viewed 50

I use typescript definition of serverless configuration (serverless.ts). How do I conditionally add resources using cloud formation templates ? For example AWS cognito userpools, if I want to exclude these for offline mode, how can I specify it in serverless config file to not include them?

0 Answers
Related