Wednesday, December 20, 2023

EC2 インスタンス起動メモ(無料枠利用)

 EC2 Dashboard から [Launch instance] をクリック:

Amazon Linux 2023 AMI を選択(Fedra ベースだそうです)。ちなみにAmazon Linux 2(ちょっと古い)は CentOS 7 ベース。


 インスタンスに名前をつけて:

t2.micro(無料枠内)を選択:

Created key pair.  PPK for PuTTY:

 https と http ポートを開放: 

Choose AMI profile as EC2_DefaultRole. 

No change for Termination protection. Other than above, everything is default.  “Launch instance”

作成中:

Successfully created:

Go back to EC2 Dashboard:

From left pane, choose “Elastic IPs”.  Choose (check box) the instance and “Allocate Elastic IP address”

Allocate

allocated successfully

Associated IP to the instance:

Select the instance and [Associate]:

Now the global IP is assigned to the instance!  To connect to the instance, [Connect] from EC2 dashboard:

Default user is "ec2-user".  [Connect]:

Congrats!  your server is ready to go!  

No comments:

Post a Comment