You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've already implemented a solution for this via #6196. Do you think you could use this feature or do you still need the extra functionality to pass-in the URL via --package?
Maybe I am missing something, but I don't understand that feature of declaring the package inside serverless.yml: it is hardcoded for all versions.
In my case, I always create a different package per each version that I want to deploy. So I don't see how it would be possible to put a URL in serverless.yml, because the URL changes every time.
The only workaround would be to generate a unique serverless.yml on the fly for each version, but that sounds weird. I am really interested to learn if you use those features differently?
This would only work if it's a location that won't change. If the artifact name varies, then something like an option might be a better solution. You could also go down that path of re-generating the serverless.yml, but this would (as you said) be more like a hack.
@mnapoli
I have the same workflow, it would be great to have the feature you have suggested.
I have a different issue I wonder how you deal with?
When you package your development env (I use --satge flag) then all the resources and env variables inside the cloufformation stack have this stage coded, then when I want to promote this env from dev-> prod I cant path the --satge prod to the sls deploy --package .path that was already created.
*I use stage environments (stage->qa->production) - so the same deploy package should be promoted when for example qa is done.
Activity
pmuens commentedon Dec 13, 2019
Hey @mnapoli thanks for opening 👍
I've already implemented a solution for this via #6196. Do you think you could use this feature or do you still need the extra functionality to pass-in the URL via
--package?mnapoli commentedon Dec 13, 2019
@pmuens thanks for the link!
Maybe I am missing something, but I don't understand that feature of declaring the package inside
serverless.yml: it is hardcoded for all versions.In my case, I always create a different package per each version that I want to deploy. So I don't see how it would be possible to put a URL in
serverless.yml, because the URL changes every time.The only workaround would be to generate a unique
serverless.ymlon the fly for each version, but that sounds weird. I am really interested to learn if you use those features differently?pmuens commentedon Dec 13, 2019
@mnapoli yes, you're right.
This would only work if it's a location that won't change. If the artifact name varies, then something like an
optionmight be a better solution. You could also go down that path of re-generating theserverless.yml, but this would (as you said) be more like a hack.alex25784 commentedon Jan 1, 2020
@mnapoli
I have the same workflow, it would be great to have the feature you have suggested.
I have a different issue I wonder how you deal with?
When you package your development env (I use --satge flag) then all the resources and env variables inside the cloufformation stack have this stage coded, then when I want to promote this env from dev-> prod I cant path the --satge prod to the sls deploy --package .path that was already created.
*I use stage environments (stage->qa->production) - so the same deploy package should be promoted when for example qa is done.
zomgbre commentedon Feb 14, 2020
medikoo commentedon Dec 8, 2021
It feels related to #8499