Unable to deploy to AWAS Elastic Beanstalk using Git

I follow the Elastic Beanstalk docs ( http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_nodejs_express.html ), but I cannot deploy either the node.js application or PHP using git.

$ eb push Error: Failed to create the AWS Elastic Beanstalk application version Cannot run aws.push for local repository HEAD: 

The same thing happens if I try to click 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 invoke eb init, AWS tools set up several git shortcuts. A challenge that fails ...

 $.git/AWSDevTools/aws.elasticbeanstalk.createapplicationversion Error: Failed to create the AWS Elastic Beanstalk application version 

The code for these python modules ...

 from aws.dev_tools import * if __name__ == "__main__": dev_tools = DevTools() dev_tools.create_application_version(None, None) 

I tried this for new php and node.js projects. I am running Python 2.7.2, Ruby 2.1.2p95 (version 2014-05-08 45877) [x86_64-darwin12.0]. Any thoughts?

+6
source share
6 answers

We encountered the same error message, but with a different reason. The commit message for our git commit was too long or contained special characters. Using a simplified git commit message cleared it. Hope this helps someone!

+10
source

This error will only bite people who use multiple AWS accounts. It looks like if you specified AWS_CREDENTIAL_FILE in your environment variables, AWS tools will pick this up instead of collecting the local credentials that I set for the Beanstalk project. You can check which configuration is used by calling the following command.

 git aws.config 

tells me that credentials come from ...

 /Users/a12345/.ec2/CLI_Access_User.iam 

... instead of a local environment. I want the error message to indicate that this is a permission issue.

+5
source

It happened to me when I ran out of application versions, there is a limit of 500

+2
source

I have another possible reason for this error, and I got debugging:

 {"Error": {"Code":"TooManyApplicationVersionsException", "Message":"You cannot have more than 500 Application Versions. Either remove some Application Versions or request a limit increase.", "Type":"Sender"}, "RequestId":"xxxxxxxx-8184-11e4-xxxx-d5d8eef7a812"} 

Specifically, AWSDevTools should generate these errors more informative than Error: Failed to create the AWS Elastic Beanstalk application version or even provide the --verbose option.

0
source

The solution is here: Amazon Elastick BeanStalk Error : Failed to create AWS Elastic Beanstalk application version

Looks like too many versions are uploaded to Amazon.

0
source

The above might work for someone, but if you still find problems, please check your git aws.config, because if you are working on multiple Beanstalks with multiple accounts, try checking if this is correct.

0
source

Source: https://habr.com/ru/post/970266/


All Articles