LoginSignup
8
9

More than 5 years have passed since last update.

CodeDeploy AgentをAmazon Linuxに手動でインストールする

Last updated at Posted at 2014-11-13

AWSの新しいサービスとしてAWS CodeDeployがリリースされました。
どんなサービスなのかはインターネットに色々な方が書いているので、そちらを見てもらえればと思いますが、デプロイ対象のEC2インスタンスにはCode Deploy Agentなるものをインストールしないみたい。
Amazon Linuxにインストールしてみたメモを残しておく。後できちんとまとめる。
といっても、やり方はこちらに書いているまま。

AWS CodeDeploy AgentがサポートするAMI

  • Amazon Linux 2014.09.1
  • Ubuntu Server 12.04 LTS and 14.04 LTS
  • Windows Server 2008 R2 and 2012 R2

Amazon Linuxでの動作確認

インストールする対象のAmazon LinuxはIAM Roleをつけておく。

インストール

$ sudo yum update
$ sudo yum install aws-cli
$ cd /home/ec2-user
$ aws s3 cp s3://aws-codedeploy-us-east-1/latest/install . --region us-east-1
$ chmod +x ./install
$ sudo ./install auto

動作確認

$ sudo service codedeploy-agent status
The AWS CodeDeploy agent is running as PID 2505

$ sudo yum info codedeploy-agent
読み込んだプラグイン:priorities, update-motd, upgrade-helper
インストール済みパッケージ
名前                : codedeploy-agent
アーキテクチャー    : noarch
バージョン          : 1.0
リリース            : 1.643
容量                : 5.8 M
リポジトリー        : installed
提供元リポジトリー  : /codedeploy-agent-1.0-1.643.noarch
要約                : Provides the required files for CodeDeploy agent to run in EC2 instances
ライセンス          : Amazon.com Internal
説明                : CodeDeploy instance agent is responsible for doing the actual work of deploying software
                    : on an EC2 instance.

設定ファイルとかもあるっぽいので、何かしらの設定が必要かも

8
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
9