1
0

More than 3 years have passed since last update.

[無料] AWS EC2 + RDS + Flask でWebアプリを作り HTTPS 化する [その4: IPアドレスの固定]

Last updated at Posted at 2020-12-13

その3 からの続きです。Webアプリとして使うための設定をしていきます。

IPアドレスの固定

EC2インスタンスのIPアドレスは、一度シャットダウンすると変わることがあります (再起動だけでは変わらないかも)。まあシャットダウンしなければいいのですが、万一IPアドレスが変わってアプリにアクセスできないなんてことがあったら困るので、念のために固定しておきます。

EC2 のメイン画面から Elastic IPs を選択します。
Screen Shot 2563-12-13 at 17.23.52.png
何もない画面が出てきます。Allocate Elastic IP address をクリックします。
Screen Shot 2563-12-13 at 17.24.51.png
そのまま Allocate します。
Screen Shot 2563-12-13 at 17.25.57.png
固定IPアドレスが作成できました。ついでに名前を ElasticIP for testapp とでもつけておきます
68747470733a2f2f71696974612d696d6167652d73746f72652e73332e61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f302f3732373633342f38653066386432632d623034662d373839362d306137642d3964333161633132313330332e706e67.png
Actions から、Associate Elastic IP address を選択します。
Screen Shot 2563-12-13 at 17.33.17.png
真ん中の Insrance から、インスタンスを選択し、Allocate します。
Screen Shot 2563-12-13 at 17.29.47.png

これでインスタンスの作成と設定は終わりです。その5 では具体的なFlaskアプリの作成を行います。

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