Files that are uploaded to AWS S3 for deployment using CodeDeploy do not have an extension.
The ZIP_FILE variable specified should apply the .zip extension to the end of the uploaded content.
This will resolve issues with attempting to run a manual deployment from the AWS CodeDeploy console using a Revision that was uploaded from BitBucket using the CodeDeploy Pipe.
atlassian/aws-code-deploy:0.2.4
I'd be more than happy to help make the changes and submit a PR if possible.