Test Serverless yml configuration via preview?

Sorry, I’ve done some searching and can’t find anything related to what I’m trying to see. If someone knows a thread or a spot in the doc I won’t be offended if you just link me.

I’m testing out loading dynamic variables from a js file and want to see if they’re resolving correctly. Is there anything I can run to see what my yml output would be before running it? Similar to a terraform plan or --preview in google deployment manager?

Any help is greatly appreciated.

@ericruiz.developer Yep, you can use sls print to resolve your config. Docs here :slight_smile:

2 Likes

Thanks so much! I’ll try this first thing tomorrow. I should’ve mentioned I’m leveraging the GCP side of serverless, this isn’t listed under GCP but seems like it would work considering I can use SLS_DEBUG. We’ll see. =)