Hey guys, question, is it possible to upload confi...
# sst
e
Hey guys, question, is it possible to upload config files without S3? I'm using https://www.npmjs.com/package/config but the 'config' folder created in 'backend' doesn't get uploaded.
t
hey you can use https://docs.serverless-stack.com/constructs/v0/Function#copyfiles to copy additional assets into your function bundle
that said storing config in this way at deploy time probably isn't recommended
e
In my case, I'm using the 'config' package just to have a "cleaner" access to env vars. And in case it's needed static stage related params. why wouldn't you recommend it?
t
to be fair we haven't yet released our native solution for config so I don't have an easy alternative but typically people take advantage of SSM to store configuration in there
you should try to keep your config independent of a specific environment so you're not checking in anything related to config which usually has secret values
someone posted a thread looking over our
sst.Parameter
concept which is a prototype we're releasing soon: https://serverless-stack.slack.com/archives/C01JVDJQU2C/p1652885065553319
e
Perfect, thanks a lot for all the info!
I'll try the construct and if it looks good I'll write a suggestion later
my plan is to keep all secrets in env vars while only using static non-sensible data on environment jsons (if needed). I'll see how it goes 😛