LoginSignup
0
0

More than 5 years have passed since last update.

AWS EC2 のインスタンスのコピーを作成

Posted at

AWS EC2 のインスタンスのコピーを作成してサーバーを動かす方法です。
OS を環境ごとまるごとコピーして、IP アドレスを変えて動作させることです。

1) 既存の OS から 自分の AMi を作成
2) 自分の AMI からインスタンスを作成
の2つのステップになります。

私は、Ubuntu 18.04 で次の手順で行いました。

1) 既存の OS から 自分の AMi を作成

instance-id は変更して下さい。

ws ec2 create-image --instance-id i-0ebb41a6f489999b9 --name "Second server" --no-reboot

そうすると、次のように出力されます。

{
    "ImageId": "ami-0045ec213e5999b99"
}

2) 自分の AMI からインスタンスを作成
この作業はコンソールで行いました。
ami_jan0601.png

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