Help us understand the problem. What is going on with this article?

ElasticBeanstalkでのデプロイで'You need to install git to be able to use gems from git repositories.'

More than 3 years have passed since last update.
$ eb deploy
WARNING: Deploying a previously deployed commit.
INFO: Environment update is starting.                               
INFO: Deploying new version to instance(s).                         
ERROR: [Instance: xxxxxx] Command failed on instance. Return code: 11 Output: (TRUNCATED)...rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
You need to install git to be able to use gems from git repositories. For help
installing git, please refer to GitHub's tutorial at
https://help.github.com/articles/set-up-git. 
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
INFO: New application version was deployed to running EC2 instances.
ERROR: Update environment operation is complete, but with errors. For more information, see troubleshooting documentation.

こんなのが出てしまい、調べてみると下記がヒット。

http://stackoverflow.com/questions/25967427/error-on-first-git-aws-push-to-elastic-beanstalk

そして以下も参考にしつつgitの設定を書く。

http://docs.aws.amazon.com/ja_jp/elasticbeanstalk/latest/dg/customize-containers.html

.ebextensions/01-git.config

packages:
  yum:
    git: []

eb logsには世話になる。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away