× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

git: 'aws.push' is not a git command when trying to push a repository to Amazon Elastic Beanstalk on Mac

<p>I ran <code>eb init</code> which ended up asking me a lot of questions that I already set up in the Beanstalk GUI. I don't understand why this is necessary... </p> <pre><code>Anatoliys-MBP:oselot-blog toli$ eb init To get your AWS Access Key ID and Secret Access Key, visit "https://aws-portal.amazon.com/gp/aws/securityCredentials". Enter your AWS Access Key ID: xxx Enter your AWS Secret Access Key: xxx Select an AWS Elastic Beanstalk service region (current value is "US East (Virginia)"). Available service regions are: 1) US East (Virginia) 2) US West (Oregon) 3) US West (North California) 4) EU West (Ireland) 5) Asia Pacific (Singapore) 6) Asia Pacific (Tokyo) 7) Asia Pacific (Sydney) 8) South America (Sao Paulo) Select (1 to 8): 1 Enter an AWS Elastic Beanstalk application name (current value is "Oselot Wordpress Blog"): Enter an AWS Elastic Beanstalk environment name (current value is "oselotWordpressBlog-env"): Select an environment tier. Available environment tiers are: 1) WebServer::Standard::1.0 2) Worker::SQS/HTTP::1.0 Select (1 to 2): 1 Select a solution stack. Available solution stacks are: 1) 64bit Amazon Linux 2014.03 v1.0.3 running PHP 5.5 2) 32bit Amazon Linux 2014.03 v1.0.3 running PHP 5.5 3) 64bit Amazon Linux 2014.03 v1.0.3 running PHP 5.4 4) 32bit Amazon Linux 2014.03 v1.0.3 running PHP 5.4 5) 32bit Amazon Linux running PHP 5.3 6) 64bit Amazon Linux running PHP 5.3 7) 64bit Amazon Linux 2014.03 v1.0.3 running Node.js 8) 32bit Amazon Linux 2014.03 v1.0.3 running Node.js 9) 64bit Windows Server 2008 R2 running IIS 7.5 10) 64bit Windows Server 2012 running IIS 8 11) 64bit Amazon Linux 2014.03 v1.0.3 running Tomcat 7 Java 7 12) 32bit Amazon Linux 2014.03 v1.0.3 running Tomcat 7 Java 7 13) 64bit Amazon Linux 2014.03 v1.0.3 running Tomcat 7 Java 6 14) 32bit Amazon Linux 2014.03 v1.0.3 running Tomcat 7 Java 6 15) 32bit Amazon Linux running Tomcat 7 16) 64bit Amazon Linux running Tomcat 7 17) 32bit Amazon Linux running Tomcat 6 18) 64bit Amazon Linux running Tomcat 6 19) 64bit Amazon Linux 2014.03 v1.0.3 running Python 2.7 20) 32bit Amazon Linux 2014.03 v1.0.3 running Python 2.7 21) 32bit Amazon Linux 2014.03 v1.0.3 running Python 22) 64bit Amazon Linux 2014.03 v1.0.3 running Python 23) 32bit Amazon Linux running Python 24) 64bit Amazon Linux running Python 25) 64bit Amazon Linux 2014.03 v1.0.4 running Ruby 2.0 (Puma) 26) 64bit Amazon Linux 2014.03 v1.0.3 running Ruby 2.0 (Passenger Standalone) 27) 64bit Amazon Linux 2014.03 v1.0.3 running Ruby 1.9.3 28) 32bit Amazon Linux 2014.03 v1.0.3 running Ruby 1.9.3 29) 32bit Amazon Linux 2014.02 v1.0.1 running Ruby 1.8.7 30) 64bit Amazon Linux 2014.02 v1.0.1 running Ruby 1.8.7 31) 64bit Amazon Linux 2014.03 v1.0.0 running Docker 1.0.0 32) 64bit Amazon Linux 2014.03 v1.0.4 running Python 2.7 33) 64bit Amazon Linux 2014.03 v1.0.4 running PHP 5.5 34) 64bit Amazon Linux 2014.03 v1.0.4 running Node.js 35) 64bit Amazon Linux 2014.03 v1.0.4 running Ruby 1.9.3 36) 64bit Amazon Linux 2014.03 v1.0.4 running PHP 5.4 37) 64bit Amazon Linux 2014.03 v1.0.4 running Ruby 2.0 (Passenger Standalone) 38) 64bit Amazon Linux 2014.03 v1.0.4 running Tomcat 7 Java 6 39) 64bit Amazon Linux 2014.03 v1.0.4 running Python 40) 64bit Amazon Linux 2014.03 v1.0.1 running Docker 1.0.0 41) 64bit Amazon Linux 2014.03 v1.0.5 running Ruby 2.0 (Puma) 42) 64bit Amazon Linux 2014.03 v1.0.4 running Tomcat 7 Java 7 Select (1 to 42): 1 Select an environment type. Available environment types are: 1) LoadBalanced 2) SingleInstance Select (1 to 2): 1 Create an RDS DB Instance? [y/n]: n Attach an instance profile (current value is "[Create a default instance profile]"): 1) [Create a default instance profile] 2) aws-opsworks-ec2-role.1405096101659 3) aws-opsworks-ec2-role.1405096100907 4) aws-opsworks-ec2-role.1405096100282 5) aws-opsworks-ec2-role.1405096099782 6) aws-opsworks-ec2-role.1405096099019 7) aws-opsworks-ec2-role 8) [Other instance profile] Select (1 to 8): Updated AWS Credential file at "/Users/toli/.elasticbeanstalk/aws_credential_file". </code></pre> <p>Got this error:</p> <pre><code>Traceback (most recent call last): File ".git/AWSDevTools/aws.elasticbeanstalk.push", line 21, in &lt;module&gt; from aws.dev_tools import * File "/Users/toli/Sites/oselot-blog/.git/AWSDevTools/aws/dev_tools.py", line 5, in &lt;module&gt; import boto ImportError: No module named boto </code></pre> <p>So I actually got boto by doing </p> <ol> <li><code>curl -O https://bootstrap.pypa.io/get-pip.py</code></li> <li><code>sudo get-pip.py</code></li> <li><code>sudo pip install boto</code></li> </ol> <p>And it worked...</p> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/24703999/git:%20'aws.push'%20is%20not%20a%20git%20command%20when%20trying%20to%20push%20a%20repository%20to%20Amazon%20Elastic%20Beanstalk%20on%20Mac/24705227">Stack Overflow</a>.</p>
comments powered by Disqus