LoginSignup
6

More than 5 years have passed since last update.

Ubuntu 12.04 インスタンスに ec2-api-tools をインストール

Last updated at Posted at 2012-05-29

Ubuntu 12.04 インスタンスに ec2-api-tools, ec2-ami-tools をインストールする方法のメモ。
起動するインスタンスは、Ubuntu Server 12.04 LTS (ami-60c77761) です。

レポジトリをアップデート

sources.list を編集するので、バックアップをしておきます。

$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

/etc/apt/sources.list の中の、コメントアウトされている以下の6行を有効にします。

/etc/apt/sources.list
deb http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates multiverse

deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

レポジトリをアップデート。

$ sudo apt-get update

ec2-api-tools のインストール

ec2-api-tools, ec2-ami-tools をインストール。

$ sudo apt-get install ec2-api-tools ec2-ami-tools

入ったか確認。

$ which ec2-describe-images
/usr/bin/ec2-describe-images

入りました :-)

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
6