Skip to content
Search

EC2:GettingStarted

lastmod 2023-02-02created 2021-10-018 edits

How to get started with the EC2 service.

Categories

How to estimate costs

First, run an estimate with the AWS Pricing Calculator.

Creating a new instance

Index

Screenshot

Description

01

Aws-ec2-getting-started-01.png

Go to the AWS Management Console.

02

Aws-ec2-getting-started-02.png

Select the ECS service in the console.

03

Aws-ec2-getting-started-03.png

Select a region. For Korea, there is Seoul.

04

Aws-ec2-getting-started-04.png

If you have a key pair, you can just create the instance right away. If not, create a key pair first. (Start from item 13)

05

Aws-ec2-getting-started-05.png

Select the OS to use.

06

Aws-ec2-getting-started-06.png

Select the desired OS (Ubuntu here) and architecture (64-bit here), then click the "Select" button on the right.

07

Aws-ec2-getting-started-07.png

Select the instance type (family). For instance types, see the EC2:InstanceType1 page.

08

Aws-ec2-getting-started-08.png

Select the detailed options. However, if "Credit specification" is set to Unlimited, credits are issued without limit, so you may get hit with a huge bill. It is best to turn this option off.

09

Aws-ec2-getting-started-09.png

Select storage and capacity

10

Aws-ec2-getting-started-10.png

Specify network port rules.

11

Aws-ec2-getting-started-11.png

Do a final check of your selections.

12

Aws-ec2-getting-started-12.png

Select the key pair to use for SSH connections. If you don't have one, you must create a new one. If you have already created one on your local PC, you can use that key pair. (If you want to register a new one, you must register it before creating the instance) -> Once registration is complete, go to step 16.

13

Aws-ec2-getting-started-13.png

To register a key pair you already have, select the Import menu from the Actions button at the top.

14

Aws-ec2-getting-started-14.png

Add the public file (*.pub) of your key pair. You can also copy the contents in directly.

15

Aws-ec2-getting-started-15.png

If registration succeeds, the fingerprint is displayed.

16

Aws-ec2-getting-started-16.png

Again, after finishing the instance settings, select the key pair.

17

Aws-ec2-getting-started-17.png

When it is done, the following screen appears. Congratulations. Your postpaid card charges are now all booked.

18

Aws-ec2-getting-started-18.png

You can check the instance list.

19

Aws-ec2-getting-started-19.png

To see how to connect, click the Connect button at the top.

20

Aws-ec2-getting-started-20.png

You can check the default user name.

21

Aws-ec2-getting-started-22.png

Click the "SSH Client" tab at the top to display how to connect via ssh.

For reference, if you start from an Ubuntu image, the default user is ubuntu. As for the password, the ssh login account automatically has sudo privileges, so you can change it with sudo passwd.

See also

Favorite site

References

author Zer0 sitemap