Every time I run command "sam package", it create a zip file with optional name then upload this zip file to s3. So, this command will create many zip file in s3 when I run "sam package" multiple time.
It's good to specify a name of zip file which is uploaded to s3 when run "sam package"
:+1 any update on this? My S3 bucket is filled with old zip files I think the whole name won't do because cloudformation needs to know when the zip file has been updated. A better option would be to add a prefix.
The --s3-prefix option exists today, and you can use this to prefix any of the auto-generated names using any scheme you like (S3 folder style or prefixes). For example:
sam package --output-template packaged.yml --s3-bucket my-source-bucket --s3-prefix "my-project/"
This works but still, it would be better to have a name of the zip file rather than just random string.
Also, would be it worth having a command to just create the zip file?
Most helpful comment
This works but still, it would be better to have a name of the zip file rather than just random string.
Also, would be it worth having a command to just create the zip file?