Current location - Trademark Inquiry Complete Network - Overdue credit card - Steps to create Amazon EC2
Steps to create Amazon EC2
If you are going to use Amazon Web Services (AWS), there are at least two ways to create and use AWS. One way is to use AWS API (application programming interface) to call. I suggest you use the second method in most cases, namely AWS management console and Amazon web-based interface.

Simplified process of AWS management console:

1)AWS registration

2) Create a security group for the instance.

3) Start the Amazon EC2 instance.

4) Connect Amazon EC2 instance.

5) Add Amazon EC2 instance storage

AWS registration

Register AWS, click Register, and then follow the instructions on the subsequent screen. When you register, you will receive your AWS account, which will be used later.

When you register AWS for the first time, you will receive an account, and all AWS services will automatically generate an account. Including Amazon EC2 service, S3 and EBS storage service, etc. Although AWS can register for 750 hours for free, you must provide your credit card number, which can be used to pay when using the "charge" service.

Amazon uses the phone number you provided to confirm your identity. You will receive a call from the automatic telephone system soon, and the system will prompt you to enter the received verification code. Once the verification code is verified, your account will be activated.

Create IAM user

When accessing an AWS service, the service determines whether you have access to the service resources. Create IAM users, and then add users to IAM groups according to different permissions. Next, use a special URL to access AWS. "Account id" is your AWS account ID, without hyphen, which is the AWS account you obtained when you registered AWS.

Create an IAM user, open the IAM console, enter the email address and password set when registering AWS, and then follow the instructions provided. After creating an IAM user, you can get credentials, use the special URL above, log in and use Amazon EC2.

Create a security group

As a virtual firewall, security groups control the traffic allowed to access related instances. Add inbound and outbound rules to security groups to control traffic. Inbound rules can control the traffic of instances related to security groups, such as HTTP.

Outbound rules control the traffic that can be sent to instance targets associated with security groups. However, return traffic, such as responses received from the host, is automatically allowed. If you plan to start the instance in multiple zones, you need to create security groups in each zone separately.

Create a security group and open the Amazon EC2 console:

Select an area for the security group.

Click Create Security Group and enter a name and description for the new security group.

On the Inbound tab, create a rule, for example:

HTTP traffic allowed to enter the instance

SSH traffic allowed into the instance

Two instances of AWS internal communication must belong to the same security group, or the security group of one instance must be configured to receive traffic from another security group of the same AWS account. Security groups are limited in regions, so it is necessary to equip each region with appropriate security groups in order to run applications in a planned way.

Start Amazon EC2 instance

You can start the instance using the AWS management console. The first step that must be completed before starting an instance is "Register".

Start the startup program by accessing the Amazon EC2 console and selecting Start Instance. Select Amazon machine image (AMI) to create a template for the startup instance. Next, select the hardware configuration of the instance by selecting the instance type. Select the previously created security group for the instance, use the previously created credentials, and finally start the instance.

Add EBS volume for Amazon EC2 instance.

After the instance is started and connected, you can add EBS volumes for the instance or add storage units for other storage services. Open the Amazon EC2 console, select the area where the instance is created (EBS volume is a sensitive area), and then select the instance. You can choose the type of volume: standard or supply IOPS. Finally, attach the volume. If you create an empty volume, you need to format it before you can mount it.