AWS Learning EC2

, Introduction to AWS 

AWS ( Amazon Web Services) provides a complete set of cloud computing services that allow you to build complex, scalable applications. Today, thousands of customers of all sizes use these cloud computing services in a variety of industries, including healthcare, media, financial services, insurance, real estate and retail, as well as education and the public sector.

The main services provided are as follows:

 

2. Why choose AWS

There are countless PaaS and IaaS providers in cloud computing, so why choose AWS? The following reasons given by AWS are enough to explain this problem.

 (1), low ongoing cost: reduce your total IT cost
  
 (2) No up-front investment: replace up-front infrastructure investment with low monthly costs.
 
 (3) Applications, not operations: Focus on the projects that differentiate your company, not the infrastructure
 
 (4) Flexibility: Eliminate your guesses about infrastructure capacity needs
       

EC2

 Amazon EC2 is an IaaS cloud service that mainly provides elastic computing resources. In layman's terms, it is to provide various types of virtual machines. EC2 is also the core component of the entire AWS, and many services in AWS need to rely on it. In an EC2 environment, a virtual machine is called an instance, and an image of an instance is called an AMI. Any business or individual can choose instances of different types and sizes to create, get up and running in a fraction of the time. It is mainly charged according to the type and time of use, that is, how much is charged for how much is used.

    Main services provided:

    EBS (Elastic Block Storage) : Provides permanent storage for EC2 instances

    Elastic IP addresses : Static IP addresses primarily used for dynamic cloud computing, associated with your instance rather than a specific instance

    VPC (Virtual Private Cloud) : Allows you to provision a private, isolated portion of the Amazon Web Services (AWS) cloud, allowing you to launch AWS resources in a virtual network of your own definition. With Amazon VPC, you can define a virtual network topology that closely resembles a traditional network running in your own data center. 

    ELB (Elastic Load Balancing) : Can automatically distribute incoming traffic to an application across multiple Amazon EC2 instances.
    Auto Scaling : Automatically scale Amazon EC2 capacity based on conditions you define

 

4. Steps to create EC2 

    1. Open the aws panel and find the EC2 option, as shown below

            

    2. Click the EC2 link marked with a red line in the figure above to jump to the following page. This page mainly contains information such as the current running instance, space, and number of secret keys.

           

      3. Click "Launch Instance" marked with red line in the above picture, the page will jump to the following page, select the virtual machine 

            

  4. Click "select" in the figure above to enter the following configuration interface, where the micro instance is selected

    

  5. Click "Next: Configure Instance Details" in the above figure, jump to the following page, select the default

          

 

  6. Click "Next: Add Storage" in the above picture, jump to the following page, the parameters are all default

              

  7. Click "Next: Tag Instane" in the above picture, the page is as follows, enter "201403" in the value

            

 

  8. Click "Next: Configure Security Group" in the above figure, jump to the following page, select a security group

           

  9. Click "Review and launch" in the image above, the page displays the details of your configuration

         

  10. Click "Launch" in the picture above, you need to create a key pair for logging in to EC2, click the "3" download button to save the key pair

    

  11. Click "Launch Instance" in the image above, wait for a while, the creation result will be displayed, as shown below

           

  12. Go back to the main interface of EC2, wait for a while, after creating EC2, the result page is as follows 

    

 

  13. Now test the connection to the Amazon linux virtual machine, select "201403" and click the Connect button in the "3" area in the above figure, wait a moment, the following window will pop up, select the "1" option in the figure below, and then put the The saved key path is filled in the input box of "2". 

    

  14. Click "Launch SSH Client" in the image above, wait a moment, the following window will appear, and you are correctly connected to the AWS virtual machine

    

  

    Ok, so far, the EC2 virtual machine can be connected, and Amazon's EC2 service has been successfully configured.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326704104&siteId=291194637