Unable to deploy to AWS Elastic Beanstalk using Git
amazon-elastic-beanstalk, amazon-web-services, git, node.js, php
Solution
We experienced the same error message but different cause. The commit message for our git commit was either too long or contained special characters. Using a simpler git commit message cleared it up. Hope this helps someone!
Problem
I'm following the Elastic Beanstalk docs (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_nodejs_express.html) to the letter but I'm unable to deploy either a node.js or PHP application using git. ``` $ eb push Error: Failed to create the AWS Elastic Beanstalk application version Cannot run aws.push for local repository HEAD: ``` The same happens if I try to push from git ``` $ git aws.push Updating the AWS Elastic Beanstalk environment phpapp-env... Error: Failed to create the AWS Elastic Beanstalk application version ``` When you call eb init, the AWS tools setup a few git shortcuts. The call that is failing is... ``` $.git/AWSDevTools/aws.elasticbeanstalk.createapplicationversion Error: Failed to create the AWS Elastic Beanstalk application version ``` The code for that python modules is... ``` from aws.dev_tools import * if __name__ == "__main__": dev_tools = DevTools() dev_tools.create_application_version(None, None) ``` I've tried this for a brand new php and node.js projects. I'm running Python 2.7.2, Ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin12.0]. Any thoughts?