I have to package aws-sdk locally and upload it because I need a newer version than the one that’s preinstalled. However, this causes my zip artifact to be 10MB. While this shouldn’t be an issue, for some reason it takes around 10+ minutes in the “Uploading artifacts…” phase.
How can this be so slow on a normal consumer connection?
My upload speed is 0.85 megabit per second (from speedtest.net). This means it should take 1.5 minutes, but it takes much much longer. I do use --aws-s3-accelerate.
I followed your advice and uploaded it manually with aws s3 sync and the transfer speed was indeed 70 kilobytes per second, resulting in it finishing in less than 2 minutes.
When I use sls deploy the “uploading artifacts” part takes more than 10 minutes.
Perhaps s3 sync is smart enough to use multipart uploading?