I can create a package using which fine:
serverless package --stage etc etc --package some-dir
The directory contains my zip, state and cloudformation files.
Now, once built and unit tested, I would like to carry these artifacts through my deployment pipeline, so ideally, I would like to generate just the state and cloudformation files retaining my original tested code in my build step. How can I do this? It seems like serverless deploy --package some-dir requires those files pre-generated. This kind of breaks the pipeline for me as I would ideally like my build step not to have any real information about the deployment environments.
How has someone solved this problem?