aws-code-deploy:1.6.0
to upload and deploy a zip artifact to an EC2 instance via AWS Code Deploy. The FOLDER
and S3_BUCKET
options correctly place the artifact in the desired S3 path, and the deployment triggers successfully.binary/octet-stream
instead of application/zip
. Because of this, the file isn't recognized as a ZIP when downloaded directly from S3, causing issues in manual usage or validation.0.2.10
uploaded it with the correct type but lacked support for setting a folder path in S3.Hi @azam pasha, welcome to the community.
Looking at the source code, the content-type isn't specified in the call to put_object(), and using "binary/octet-stream" as a default isn't that far-fetched. I honestly don't think the MIME type of the object upload makes a difference, but I could be completely wrong about that.
Are you setting the BUDLE_TYPE variable in your pipeline? It defaults to "zip," but that has more to do with the code deployment than the file upload. I would look there first.
yes, we are setting BUNDLE_TYPE : "zip", variable in the code deployment step
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, good.
What symptoms are you referring to when you say "the file isn't recognized as a ZIP when downloaded"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.