LoginSignup
4
4

More than 5 years have passed since last update.

DataPipelineのEc2Resouceで使えるAMIを作り上げる

Posted at

とりあえずUbuntu 12.04でやった手順を載せておきます。

必要な物

実際には

  • Linux
  • Bash
  • wget
  • unzip
  • Java 1.6 or newer
  • cloud-init

が、必要なようですが、割と標準で入ってると思います。Javaはそうでもないかな?
今回既存のサーバーにですが以下の物が足りなかったので追加しました。

  1. cloud-init
  2. ec2-userという名前のユーザー

追加方法

cloud-init

$ apt-get install cloud-init

ec2-userの追加

ユーザーの追加

$ adduser ec2-user

ssh周りの設定

$ mkdir /home/ec2-user/.ssh
$ chmod 600 /home/ec2-user/.ssh
$ cp /home/ubuntu/.ssh/authorized_keys /home/ec2-user/.ssh/authorized_keys
$ chown ec2-user:ec2-user /home/ec2-user/.ssh/authorized_keys

参考

Task Runners - AWS Data Pipeline

4
4
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
4
4