Part 1 – Learn basic AWS: Net shop

Tram Ho

Certainly in your life, once skipped class to go play Net. And me too, I also had a childhood of eating gibbons in the old grass net shops. … Therefore, I will borrow the image of the Net to generalize the concepts of Amazon Web Services (AWS), helping you have a better overview of AWS.

2game-net-co-thanh-ly-ly-1-

Amazon Net Shop

Imagine that Company A wants to open a chain of Net shop business shops with a huge configuration. Because Company A is rich in Vcl, Company A wants to open a Net store chain in the whole world. Every country will have a Net shop in every major city in that country. A company’s Net shop is big, each shop has a few thousand terrible configuration machines , enough for Skys to plow the view for the boss or race LOL rank. Like many other Net shops, Company A’s Net shop is also numbered on each machine: Machine 1, Machine 2, Machine 3, so that employees can easily manage and customers can easily find the machine that they like better. However, this Net shop does not have a technical staff, so customers who come to the Net to have to prepare the Windows installer (or any operating system) to install it on the computer, then do it. whatever. Before going to the Net, customers have to go through the security of the shop, to make sure you do not bring weapons to the shop or help young people avoid the divine ganks from their parents.

So what does it have to do with AWS?

Actually, it is all related. If you change:

  • Company A = Amazon
  • Net shop = Amazon Web Services
  • Each country = Region
  • Each city = Availability Zones
  • Calculator = EC2
  • USB contains operating system = AMI
  • Machine number 1 = Elasctic IP
  • Protection = ASG

Then you have a rough grasp of how AWS works and the basic concepts

Back to AWS

Through the above example, I will talk more about the most basic concepts of AWS.

Region

The AWS region here is exactly the same as the countries in our Net example above. Amazon will place their servers in various countries and regions around the world. At the moment, there will be a total of 22 countries where Amazon chooses to send gold to the server. This means that when buying AWS services, you should choose an area that best suits your needs. For example, in Vietnam, you should choose the region is Singapore because the server is closest to East Laos, so the speed will be much faster.

Global-Infrastructure

Availability Zones (AZ)

As above, Amazon will continue to place its server in different regions for every country. For example, in Amazon, choosing Singapore as a server place, Amazon will place several different servers in each different place to ensure safety. In case of terrorism, it shoots the server in one place and then backs up another. Each server is called an Availability Zones (AZ).

Screen-Shot-2019-04-26-at-3.44.52-PM

EC2

On a server, Amazon allows me to rent Instance on those servers. It’s exactly like I rented a computer like my example above. No different. This computer I rented, called EC2, is a virtual computer that Amazon gives me. Because it is a computer, each computer will have different configurations, depending on your choice of needs. You just go straight to the home page of AWS to see the configuration of each child and then choose the one that suits your needs. Usually if it’s a learning need, using the t2.micro is ok. This one is free to use.

Amazon-EC2-T2-Instances --- Amazon-Web-Services - AWS-

Amazon Machine Image (AMI)

Once you have the computer, the next step is to install the operating system for it. If this is the case, the Win installers will know it all. Any type, you have to download the installer and use USB to create a boot and then install it for Windows. Similarly, the installer here is called AMI. Amazon let me choose what I want to install, depending on the needs, choose one to install. For example, I can install Windows, Ubuntu, Redhat, or Fedora. Whatever. When I hired EC2, it let me choose. I can also build my own operating system and then install it. Amazon has provided an AMI that I think is the most popular is Amazon Linux. It is basically a Linux operating system with some tools installed by Amazon. I use this guy to learn. I don’t have much experience in other guys.

Elasctic IP

When you go to a Net shop, each machine has a specific address. For example, machine 1, machine 2, machine 2. So similarly, when you rent an EC2, Amazon will give you an address, called IPv4. However, this address will change every time you turn off EC2 or restart EC2. Therefore, Amazon gives you a fixed and never changing address, called Elasctic IP. But this has cost money to get, so usually small and medium websites do not need to use this guy at all. Often people will use DNS to point to IPv4 automatically without using Elasctic IP.

Amazon Security Group (ASG)

The Amazon Security Group is just like the Net store’s security. Security will control all customers going in and out of the Net. Just like Amazon Security Group will control all incoming and outgoing connections. By default, when you create an instance, an ASG is created and blocks all inbound and outbound connections. For example, when I create an Instance and in SG I configure only port 22 (SSH) from outside, only connections with port 22 can enter EC2, the rest will be blocked clean.

security-group-config.17423baeced21997af7a131760196cfed6f39bb9

Conclude

The above are extremely basic and simple concepts AWS. I did not go into the features of each part (I have not studied well yet), but it is enough for you to have a rough idea of ​​how AWS is distorted. The next part I will talk about other concepts like Load Balancer or Auto Scaling Group.

Currently I am learning to write Blog at https://htknguyen.com/ . If you are interested, please visit my blog to listen to my chat. I only write simple articles, some nice things for students. Shoot Heart

Share the news now

Source : Viblo