Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to deploy to AWS Elastic Beanstalk using Git

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?

like image 205
Michael Connor Avatar asked Jun 03 '14 19:06

Michael Connor


People also ask

How do I deploy AWS Elastic Beanstalk?

Open the Elastic Beanstalk console , and in the Regions list, select your AWS Region. In the navigation pane, choose Environments, and then choose the name of your environment from the list. If you have many environments, use the search bar to filter the environment list. Choose Upload and deploy.


1 Answers

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!

like image 151
Adam Alexander Avatar answered Sep 28 '22 07:09

Adam Alexander