Learn about Amazon EC2 service

Amazon Elastic Compute Cloud (EC2) is the foundation for the cloud computing environment provided by Amazon. EC2 makes it simple and easy to create, launch and backup virtual applications for individuals or businesses.

Amazon Elastic Compute Cloud (EC2) is the foundation for the cloud computing environment provided by Amazon.EC2 makes it simple and easy to create, launch and backup virtual applications for individuals or businesses. You pay usage fees for these applications according to the type of application and duration of use. Virtual servers work inside the security environment of Amazon data centers.

When Amazon first launched EC2 in 2006, many people were surprised. They are skeptical because they always think that Amazon is a simple online retailer. However, after 5 years of operation, EC2 has become a world-class cloud platform. With the business model, Amazon Web Services is generally considered one of the best services. In the following article we will introduce you to the basics of cloud computing and especially Amazon EC2 .

Learn about Amazon EC2 service

  1. Learn about 'The Cloud'
  2. Composition EC2
    1. Support operating system
    2. Security
    3. Price
    4. Fault tolerance
    5. Move
  3. Features of EC2
  4. How to use AWS EC2
    1. Create an AWS account and log in to AWS
    2. Create an Instance
    3. Connected to Instance
    4. Download Firefox
    5. Install R and Python
    6. Stop or terminate an Instance

Learn about 'The Cloud'

This term has many different definitions from sources you can find out. In general, it is used to describe a way to scale up computer resources to meet user needs.

For example, a book store wants to allow customers to order online. The traditional way is to rent a server, install an operating system, run a webserver application and upload their page to it.

Learn about Amazon EC2 service Picture 1Learn about Amazon EC2 service Picture 1

When virtualization technology becomes popular, people start using another method called Virtual Private Server or VPS . With this method, you can run multiple operating systems on the same server, with its own settings and applications.

Learn about Amazon EC2 service Picture 2Learn about Amazon EC2 service Picture 2

This technology allows each user to have complete control over their system, without having to spend specialized hardware costs. Each company will save a considerable amount of money by switching to VPS because they do not need the full power of the server, so can share the cost with many other companies.

The ' cloud ' method is even more virtualized. Because you are virtualized on the software side, what happens if you also virtualize the hardware? The nature of cloud computing is a huge collection of computing resources and intelligently allocates them when needed. For example, the diagram below:

Learn about Amazon EC2 service Picture 3Learn about Amazon EC2 service Picture 3

You can see that most parts are different sizes, and each company / website only needs a single part on the server. But one of the biggest benefits of cloud computing is that it can scale this resource up or down if necessary, helping to increase traffic from multiple servers. A dedicated server is not equipped to handle congestion because traffic is too high, likewise, a VPS (although more flexible) still needs a hardware transfer or upgrade to keep up need. As for the server in the cloud, it only needs to 'turn up ' to handle when exceeding traffic. Then just reduce your resources to return to normal.

Composition EC2

In AWS EC2, users need to know about EC2 components, supported operating systems, security measures, etc.

Support operating system

Amazon EC2 supports multiple operating systems: Red Hat Enterprise, SUSE Enterprise and Oracle Enterprise Linux, UNIX, Windows Server, etc. These operating systems need to be deployed in conjunction with Amazon Virtual Private Cloud (VPC).

Security

Users have full control over their AWS account visibility. In AWS EC2, security systems allow creating groups and placing running Instances on it as required. You can specify groups to which other groups communicate, as well as groups with IP subnets on the Internet that can talk.

Price

AWS offers many different pricing options, depending on the type of resource, application type and database. It allows users to configure their resources and calculate the corresponding fees.

Fault tolerance

Amazon EC2 allows users to access its resources to design faulty applications. EC2 also has geographic regions and isolated areas called available zones that are fault tolerant and stable. It does not share the exact location of the regional data center for security reasons.

When the user launches Instance, they must select AMI in the same Instance area running. Instances are distributed across multiple regions available to provide error-free services and Elastic IP addresses are used to quickly map faulty Instance addresses to Instances running concurrently in other regions to avoid delay in services.

Move

This service allows users to move existing applications to EC2. It costs $ 80 per storage device and $ 2.49 per hour to download data. This service is suitable for users who need to move large amounts of data.

Features of EC2

Here is a list of some outstanding features of EC2:

  1. Reliable - Amazon EC2 provides a highly reliable environment, fast replacement of Instances. Commitment to SLA (Service Level Agreement) service quality is available 99.9% for each Amazon EC2 area.
  2. Designed for Amazon Web Services - Amazon EC2 works well with Amazon services like Amazon S3, Amazon RDS, Amazon DynamoDB and Amazon SQS. It provides a complete solution for computers, query processing and storage on a variety of applications.
  3. Security - Amazon EC2 operates in Amazon virtual private cloud (Virtual Private Cloud) to provide a secure and powerful network for resources.
  4. Flexible tool - Amazon EC2 provides tools for developers and system administrators to build applications and isolate it from general failure situations.
  5. Inexpensive - You only have to pay for the resources you use. It has many packages such as On-Demand Instances, Reserved Instances, Spot Instances, etc. for you to choose according to your needs.

How to use AWS EC2

Create an AWS account and log in to AWS

Step 1 . On the Amazon Web Services website (aws.amazon.com), click on " Sign in to the Console ." Log in if you have an account, otherwise create an account.

Learn about Amazon EC2 service Picture 4Learn about Amazon EC2 service Picture 4

Step 2 . On EC2 Dashboard, click on EC2 .

Learn about Amazon EC2 service Picture 5Learn about Amazon EC2 service Picture 5

Create an Instance

Step 1 . On the Amazon EC2 management console, click Launch Instance .

Learn about Amazon EC2 service Picture 6Learn about Amazon EC2 service Picture 6

Step 2 . Click the " Select " button in the row with Microsoft Windows Server 2016 Base. Note, this operation will create Instance based on Windows instead of Instance based on Linux. This affects how you connect to Instance.

Learn about Amazon EC2 service Picture 7Learn about Amazon EC2 service Picture 7

Step 3 . Be sure to select t2 micro (free instance type).

Learn about Amazon EC2 service Picture 8Learn about Amazon EC2 service Picture 8

And click on " Review and Launch ".

Learn about Amazon EC2 service Picture 9Learn about Amazon EC2 service Picture 9

Step 4 . Click Launch .

Learn about Amazon EC2 service Picture 10Learn about Amazon EC2 service Picture 10

Step 5 . Select " Create a new key pair ". In the box below (" Key pair name '), enter the key pair name. In this example, the key is named DataCampTutorial, you can name it with anything you want. Then click' Download Key Pair 'To download the key. You should save it in a safe place.

Learn about Amazon EC2 service Picture 11Learn about Amazon EC2 service Picture 11

Next, click on ' Launch Instances '.

Learn about Amazon EC2 service Picture 12Learn about Amazon EC2 service Picture 12

Step 6 . Instance is currently being launched. Go back to the Amazon EC2 management console. You should click on the red rectangle to bring you back to the control panel.

Learn about Amazon EC2 service Picture 13Learn about Amazon EC2 service Picture 13

Step 7 . Wait until you see the " Instance State " running before proceeding to the next step. This process may take several minutes.

Learn about Amazon EC2 service Picture 14Learn about Amazon EC2 service Picture 14

Connected to Instance

Step 1 . Click on Connect .

Learn about Amazon EC2 service Picture 15Learn about Amazon EC2 service Picture 15

Step 2 . Click " Download Remote Desktop File ", save this file in a safe place.

Learn about Amazon EC2 service Picture 16Learn about Amazon EC2 service Picture 16

Step 3 . Click ' Get Password '. Note, you must wait at least 4 minutes after launching an Instance before regaining the password.

Learn about Amazon EC2 service Picture 17Learn about Amazon EC2 service Picture 17

Step 4 . Select the downloaded pem file from Step 5 (in the Create an Instance section) and then click " Decrypt Password ".

Learn about Amazon EC2 service Picture 18Learn about Amazon EC2 service Picture 18

Step 5 . After decrypting your password, save it in a safe place. You will need it to log into your Instance.

Learn about Amazon EC2 service Picture 19Learn about Amazon EC2 service Picture 19

Step 6 . Open your rdp file, click Continue . If your local computer is a Mac, you need to download "Microsoft Remote Desktop" from the App Store to be able to open the rdp file.

Learn about Amazon EC2 service Picture 20Learn about Amazon EC2 service Picture 20

Step 7. Enter the password you received from Step 5.

Learn about Amazon EC2 service Picture 21Learn about Amazon EC2 service Picture 21

After entering the password, you will see a screen like this.

Learn about Amazon EC2 service Picture 22Learn about Amazon EC2 service Picture 22

Download Firefox

To be able to install R and / or Python, you need a browser. This instance installed with Internet Explorer with Enhanced Security Configuration is enabled, it is difficult to install R or Python. You can download Firefox as an alternative web browser to avoid advanced security from Internet Explorer.

Step 1 . Enter the following information in Internet Explorer https://www.mozilla.org/firefox/new/?scene=2.

Learn about Amazon EC2 service Picture 23Learn about Amazon EC2 service Picture 23

Step 2 . Click " Add " when you see the pop-up window as shown below.

Learn about Amazon EC2 service Picture 24Learn about Amazon EC2 service Picture 24

Click Add again.

Learn about Amazon EC2 service Picture 25Learn about Amazon EC2 service Picture 25

Step 3 . When you visit the Firefox site, you can click add several times (similar steps 1 and 2) until the process of downloading Firefox starts. If the download does not start automatically, click " Click here ".

Learn about Amazon EC2 service Picture 26Learn about Amazon EC2 service Picture 26

Now that Firefox is installed, be sure to use Firefox as your browser.

Install R and Python

Now that Firefox is installed, you can install R and Python as you would on a regular Windows machine.

Stop or terminate an Instance

After completing the use of an Instance, you should stop or terminate it. To do this, go to the Amazon EC2 management console and click on " Actions ", then select " Instance State " and you will have the option to stop or terminate Instance. If you plan to use that Instance again, select the Instance stop. If there is no reuse plan, end that Instance.

Learn about Amazon EC2 service Picture 27Learn about Amazon EC2 service Picture 27

I wish you all success!

See more:

  1. How to create a private cloud
  2. Cloud computing and 10 common security questions
  3. Build your own computing cloud system with Ubuntu
4 ★ | 1 Vote