LoginSignup
4
4

More than 3 years have passed since last update.

[AWS][EC2] Elastic IPの設定

Posted at

はじめに

Elastic IPアドレスをEC2に設定してみます。

なぜElastic IPを設定するのか

  • Elastic IPを設定していないEC2インスタンスを一度停止して、再度起動するとパブリックIPが変わってしまいます
  • IPアドレスが変わってしまうとアプリケーション間でIPアドレスをキーに連携したいときなどに困ります
  • そのときに使用するのがElastic IPアドレス
  • Elastic IPは静的なIPアドレスです

アウトライン

  1. Elastic IPの取得
  2. EC2インスタンスへElastic IPを関連づける
  3. Elastic IPの解放

1. Elastic IPの取得

  • Elastic IPを設定したいEC2インスタンスを停止します
  • Elastic IP => 新しいアドレスの割り当て からElastic IPアドレスを取得します

2. EC2インスタンスへElastic IPを関連づける

  • アクション => アドレスの関連付け から対象EC2インスタンスに関連付けを行います

3. Elastic IPの解放

  • Elastic IP => アクション => 関連付けの解除
  • 警告 Elastic IPは取得して使用するのは無料だが、取得したが使わない場合に料金が発生します

  • なので関連付けを解除したら、アドレス解放を行います
  • アクション => アドレスの解放
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