git: 'aws.push' no es un command git cuando se intenta enviar un repository a Amazon Elastic Beanstalk en Mac

Tengo la siguiente configuration:

  • Mac OS X 10.10
  • Python 2.7

Hice los siguientes pasos

  1. AWS EB Console Tools agregadas a mi path

    export PATH=$PATH:~/amazon-eb/eb/linux/python2.7/ export AWS_ACCESS_KEY_ID=xxx export AWS_SECRET_KEY=xxx export AWS_CREDENTIALS_PATH=~/.aws/cnetworkingentials 
  2. Cnetworkingenciales de AWS en ~/.aws/cnetworkingentials

     [default] AWSAccessKeyId=xxx AWSSecretKey=xxx 
  3. Creó un proyecto con el file .elasticbeanstalk/config

     [global] ApplicationName=Oselot WordPress Blog DevToolsEndpoint=git.elasticbeanstalk.us-east-1.amazonaws.com EnvironmentName=oselotWordpressBlog-env Region=us-east-1 
  4. Cuando bash ejecutar el eb status , me pide mis cnetworkingenciales (no estoy seguro de por qué …). Entonces los ingreso. Parece que funciona

     Anatoliys-MBP:oselot-blog toli$ eb status To get your AWS Access Key ID and Secret Access Key, visit "https://aws-portal.amazon.com/gp/aws/securityCnetworkingentials". Enter your AWS Access Key ID: xxx Enter your AWS Secret Access Key: xxx URL : xxx.elasticbeanstalk.com Status : Ready Health : Green RDS Database: AWSEBRDSDatabase | xxx.xxx.us-east-1.rds.amazonaws.com:3306 
  5. git aws.push y obtengo un error:

     git: 'aws.push' is not a git command. See 'git --help'. 

Ejecuté eb init que terminó haciéndome muchas preguntas que ya configuré en la GUI de Beanstalk. No entiendo por qué esto es necesario …

 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/securityCnetworkingentials". 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 Cnetworkingential file at "/Users/toli/.elasticbeanstalk/aws_cnetworkingential_file". 

Tengo este error:

 Traceback (most recent call last): File ".git/AWSDevTools/aws.elasticbeanstalk.push", line 21, in <module> from aws.dev_tools import * File "/Users/toli/Sites/oselot-blog/.git/AWSDevTools/aws/dev_tools.py", line 5, in <module> import boto ImportError: No module named boto 

Así que en realidad conseguí boto al hacer

  1. curl -O https://bootstrap.pypa.io/get-pip.py
  2. sudo get-pip.py
  3. sudo pip install boto

Y funcionó…