Amazon cloud technology entry resource center, from 0 to 1 easy cloud

1. Introduction to Amazon Cloud Technology

  1. Concept : Amazon Web Servies, Amazon Cloud Technology – Cloud Computing Platform.
  2. Background introduction :
    As early as more than ten years ago, the concept of cloud computing was proposed, and there was no clear definition or description at that time. The basic idea is to replace the existing deployment structure, but how to provide services and ensure data security, stability, and reliability have no clear and definite goals.
    Amazon has made Amazon cloud technology into a set of rings with its own ecosystem, united with universities, trained Amazon cloud technology courses, and provided qualification examinations. Very friendly training materials, video teaching, free to use learning environment. All have brought a good learning environment to market practitioners. Therefore, people who use learning Amazon cloud technology can have the opportunity to engage in related jobs.

2. Learn about setting up a free account

According to Amazon Cloud Technology’s policy, all individual users can create a free account for 1 year. Be aware, however, that not all Amazon cloud tech services are free for the first year. All the best before trying out an Amazon cloud technology service to find out if the service is free for the first year, and if so, how the fees are calculated. Regarding the topic of Amazon cloud technology fees, we will introduce it in detail later. Let’s start with how to create a free Amazon Cloud Technology account.
First visit the URL: https://aws.amazon.com/cn/getting-started/guides/setup-environment/?trk=cb0e15c9-0e15-42fd-80ae-2e08b72ed732&sc_channel=el
As you can see in the figure below, the tutorial for creating users Very detailed:

1) Click to create an Amazon cloud technology account (enter email and account name):

2) After entering the password twice, click Continue to the next step

3) Enter the full name in English, phone number, English address, and email address and click to continue to the next step

4) Enter the credit card information and click Continue
. Here you need to fill in your payment information. Although we hope to use the free service in the first year, payment information is still essential.

5) To verify the account, use SMS, send SMS and receive a numeric code to enter on the next screen Click Continue to proceed to the final step.

6) In the final step, select the desired account support plan. “Basic Support” was originally set to be a free tier. If you are not sure, please select “Basic Support” as you can always change to a different plan later. To see a full list of the differences between the plans, read Compare plans and pricing examples for details. To complete the account creation, click the Finish Registration button.

7) The registration is successful. At this point, our account has been established.

8) Log in to your account and fill in the email address you used when you just registered.

9) Security check, enter the verification code.

10) Log in to the Amazon cloud technology console

So far, we have completed the establishment and login of the free account. The next step is to start learning to use Amazon cloud technology. Starting from the next article, I will first introduce some basic concepts of Amazon cloud technology. Understanding these basic concepts is essential to properly understand and use Amazon’s cloud technology services.

3. Learning of free basic courses

Amazon Cloud Technology provides us with a free learning environment, which brings a good learning environment to market practitioners. Therefore, people who use learning Amazon cloud technology can have the opportunity to engage in related jobs.

Getting Started Resource URL : [AWS Getting Started_AWS Getting Started Tutorial_AWS Cloud Computing Resources – AWS Cloud Services]

1. Free learning operation steps

1) Click to start learning:

2) Start with the Quick Start Phase 1:

3) Fill in the information to register for the course for free

4) After successful registration, click on the video to start learning

5) The course schedule is as follows:

2. Introduction to Amazon Cloud Technology Platform

What is cloud computing?

[Cloud computing] provides IT resources on demand through the Internet and uses pay-per-use pricing. Instead of buying, owning, and maintaining physical data centers and servers, you can obtain technical services, such as computing power, storage, and databases, from cloud providers on demand.

Three cloud deployment models

Public cloud :

  • No upfront investment
  • low ongoing cost
  • Focus on innovation
  • flexible capacity
  • speed and agility
  • Available worldwide on demand

Private cloud :

  • large upfront investment
  • Labor, patch and upgrade cycles
  • System Management
  • Fixed capacity
  • Long procurement cycle and installation
  • limited physical territory

4. Talking about the distributed concept of Amazon cloud technology

Today, I will talk about the distributed concept of Amazon cloud technology from a broad perspective. First of all, Amazon Cloud Technology is a [cloud service] built on a distributed architecture . I think this is the clearest and clearest thing that everyone knows. However, when we start to use Amazon cloud technology, we will find that the distribution is not as clear as we imagined, but we often forget and need to remind ourselves that I am using a distributed system. When we discuss some of the most popular services in Amazon cloud technology, such as DynamoDB, such as S3, we will touch on an interesting concept called consistency. We will need to deeply understand the concept of eventually consistency, and some pitfalls to overcome when using such a service. These problems arise because Amazon cloud technology is a distributed system.

What is a distributed system? According to Wikipedia’s definition :

A distributed system is a system whose components are located on different networked computers that communicate and coordinate their actions by passing messages to each other. These components interact with each other to achieve a common goal. Three important characteristics of distributed systems are: component concurrency, lack of a global clock, and independent failure of components.
Amazon cloud technology can bring us many good usage features, which can be said to be accomplished with the help of distributed systems. For example, Amazon cloud technology can dynamically adjust the resources we want to use. Only when we are not using enough resources will we be allocated more resources to save costs. It is precisely because the infrastructure of Amazon Cloud Technology is based on multiple small components that Amazon Cloud Technology provides the function of dynamically allocating resources. There are many, many features that are based on the benefits of distributed systems, so I won’t go into details here.

Let’s first understand how Amazon cloud technology is distributed at the highest level. First of all, we should pay attention to the concept of region in Amazon cloud technology. If we open the region drop-down menu on the left side of “support” in the upper right corner of the Amazon Cloud Technology console interface, we can see all the regions that Amazon Cloud Technology has deployed. The information of each region includes “large region (small region) region name”, such as “US East (N. Virginia) us-east-1”, the large region is US East, the small region is Northern Virginia, and the region name is us- east-1. When we use Amazon cloud technology services, the first choice is the region, that is to say, which region of the service we want to use. The issues to be considered here include what region will other services that interact with the service be deployed in. We will tend to deploy services that communicate with each other in the same region, so as to reduce the communication delay between them. The second thing to consider is which services we want to use, because some services are only deployed in certain regions. The third thing to consider is the region where Amazon cloud technology service users are located. For example, we use Amazon cloud technology to deploy a web portal. If our target customers are basically mainland China, we should of course choose a region close to us, such as Japan, South Korea, Singapore, etc.

The next concept is Availability Zones, which is the availability zone, or AZ. Almost all services of Amazon Cloud Technology will not only be deployed in one region of the region, but at least in two or more regions of the region, and a certain distance is required between the availability zones. The advantage of this is obviously to increase the risk of service paralysis caused by physical damage, such as earthquakes, damaged network cables, and so on. For some services, we will be required to specify which AZs to use when establishing, us-east-1a, us-east-1b, and us-east-1c are the three AZs in ue-east-. There are quite a few services that do not require users to specify AZs, but AWS will automatically allocate AZs, but there must be 2 or more.

The relationship between Region and AZ is shown in the following figure:

When we access a service, the function of the service will be performed by all the AZs in the region where the service is deployed. Later, when we talk about more specific Amazon cloud technology services, we will discuss some of the benefits and pitfalls of distribution in detail.
For the introduction of Amazon Cloud Technology region and available zone, please refer to Amazon Cloud Technology documentation : https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html

5. Amazon Cloud Technology Cloud Service Products

There are many products of Amazon cloud technology cloud services (as shown in Figure 1), each product has a special purpose, in general, we need to combine different types of products (as shown in Figure 2) to build a Scalable, high-performance, and fault-tolerant systems, so this chapter will introduce services that are often used by Amazon Cloud Technology.

【Picture 1】

【Figure II】

1、EC2

EC2 (Elastic Compute Cloud) is a very basic service of Amazon Cloud Technology. Its main function is to provide computing services. For example, you can create an EC2 resource through the Amazon console. You can regard this computing resource as a virtual machine. It can compute, it can read and write storage, and it can communicate. You can create multiple EC2 resources at the same time, and these EC2s may be running on one physical machine or distributed across multiple physical machines.
From the above description, you can think of computing resources as multiple physical devices put together to form a whole, this whole has powerful computing power, and these computing power can be decomposed by thousands of EC2 resources, and Provided independently to businesses or individuals who want to use it. When enterprises or individuals do not need these computing resources, they can be released to other enterprises or individuals for use.
EC2 is a virtual machine that can run programs written in Python, run databases, and run web applications such as digolds.cn that runs on EC2 of Amazon Cloud Technology. In real projects, EC2 is generally used to run programs, so you can write programs in languages ​​such as C++, C, JavaScript, Java, Python, Ruby, etc., and then prepare the running environment that the program depends on on EC2. EC2 can run this program.

2、S3、EBS、EFS

Until today, almost all online services need to store data, including user information, pictures, songs, videos, etc. In order to store and read and write data efficiently, some programs need to be written specifically to solve storage problems. Fortunately, Amazon cloud technology provides S3 ( object storage ), EBS ( block storage ) and EFS ( file storage ) storage services, Specially used to store data. Each service has different uses, billing methods, and storage options. Next, we will look at the characteristics and uses of each storage service.

Amazon Simple Storage Service (Amazon S3 ) is an object storage service characterized by scalability, data availability, security, and high performance. Through S3, we can store the file in the form of an object and get a Key that uniquely identifies the file, through which we can obtain the content of the file from S3. In addition to the file content itself, this object also includes metadata describing the file (such as the size of the file). For example, if we store a file with a size of 23KB in S3, there will be an object in S3 that contains 23K and the content of the file.

  • S3 is often used to put some static resource files such as CSS, Javascript, pictures, videos, etc. For example, you often see videos on station B, but they can actually be stored on S3, and because S3 is easy to expand, you can Constantly storing static resources in S3. Users on the Internet can directly access the data stored on S3, which is one of its major features.

  • Amazon Elastic Block Store (Amazon EBS ) is a block storage service that is generally attached to EC2 instances for use. It has persistent and fast read and write storage capabilities, and its storage unit is block-based, as shown in the middle of the above figure (Block Storage). It cannot be accessed directly from the Internet, and it is often used to store frequently used files, such as system drivers.

  • Amazon Elastic File System (Amazon EFS ) is a file storage service that can be used by multiple EC2 instances at the same time and that scales with the number and size of stored files. That is to say, when the amount of data becomes more (less), it will automatically increase (reduce) the storage space to accommodate more (less) data. EFS is very suitable for content management systems (CMS), such as WordPress is a popular CMS, this content can be stored on EBS and then read by multiple EC2 instances, when administrators only need to update or add new content to EFS , then all EC2 instances will get exactly the same information. This consistent capability cannot be achieved on EBS, because each EBS can only be attached to a unique EC2 instance, while EFS can be attached to multiple different EC2 instances at the same time.

3、CloudFront

Amazon CloudFront is a cloud-based content delivery network (CDN) provided and integrated with Amazon’s suite of Amazon Web Services. A content distribution network with basic services provided by the Amazon Web Services system. It has its own data centers in many major cities in Europe, Asia, North America, Australia, South America, and the United States, and a total of 107 network marginal service points to provide services.
The Amazon CloudFront content delivery network allows the global distribution of digital content through regional centers operating in major commercial centers. It reduces the latency of accessing static and streaming data through its distributed content delivery channel, which ensures data is delivered from the closest CDN server to recipients. Amazon CloudFront is a pay-as-you-go model that integrates easily with all Amazon Web Services.
Amazon CloudFront is designed for web publishing companies and applications that need to deliver content quickly to users in many different regions of Amazon. Amazon CloudFront works by caching instances of each object in its different CDN locations, reducing the time it takes to deliver content.
Amazon CloudFront accesses data in Amazon S3 through supported application programming interfaces and places it in regional datastores. Other Amazon Web Services, including Amazon EC2, can also process streaming data through EC2 and deliver it to end users through CloudFront. Like all other Amazon Web Services products, CloudFront is scalable, flexible, and available as a pay-as-you-go service.

4、Route 53

With Route 53 services, AWS customers can give end users access to a wide range of Internet services. So “Route 53” acts like a virtual highway, leading end users to their destination. Route 53 has servers all over the world and is the only service that Amazon guarantees 100% availability. The DNS protocol is based on the TCP/UDP protocol, and the port that the DNS service listens on is 53. So the 53 in the name implies the port on which the DNS service is listening.

5. VPC and NAT

VPC is a virtual network service provided by AWS. Other AWS resources can be placed in this virtual network to form a logical unit. This logical unit is provided to the outside world as a complete service. When you use the VPC service, you need to use the gateways, route tables, network access control lists (ACL), subnets and security groups provided by it to configure the virtual network.

Six, experience Amazon technology to create cloud database services

1. Enter the management console

Enter the Amazon Cloud Management Console: [Amazon Cloud Management Console] .

2. Search for RDS services

3. Create a new database link

4. Select the MySQL engine

5. Select version number and free plan

6. Set the library name, main user name and password

7. Select the virtual network environment

8. Create a new VPC security group and select the port number

9. Create an instance

Create an instance, enter the script at user data, the content is as follows. Ports 80 and 22 need to be open at the security group. In the security group, set the security group of the database to allow access to the security group of the instance just created

At this point, go to the browser and enter: http://ip/phpinfo.php, you can access the publishing page.

10. Create a database

  • Create a database named test. cd /var/www/html, wget https://wordpress.org/latest.tar.gz,tar zxf latest.tar.gz, cd wordpress, enter in the browser at this time ip/wordpress, it will automatically enter the configuration page. [Note: The public network IP is used when accessing the browser, and the private network IP is used when connecting on the console], click Enter in the lower left corner to enter the configuration page.
  • The database name after entering is the database created earlier. The user name and password can be the administrator’s, or a new one can be created; at the database host, the endpoint of the database needs to be copied, and the other defaults, click submit; after submitting, you will be prompted Without permission to write, copy the displayed code and click run. At this point, you need to go back to the console, enter the /var/www/html/wordpress directory, vi wp-config.phpand write the content you just copied, and then go back to the page of Nostalgia, and click run.
  • At this point, you have entered this testblog site, where you need a custom name. Enter the user name. The password here is randomly generated and needs to be saved by yourself. After entering the email address, installclick .
  • At this point, you can log in test, you can click write your first blog, write something, and then publish. At this time, enter the database to view, and you will find that some tables are automatically created: use test;, show tables;.

7. Personal feelings about Amazon cloud technology

1. Rich in resources

Amazon cloud technology free resource address : [https://aws.amazon.com/cn/getting-started/?nc2=h_ql_le_gs&trk=4601add5-b05e-40e5-86a4-84b8eec3a582&sc_channel=ba]

The video data of Amazon Cloud Technology is detailed and rich :

  • Learn the differences between the cloud platform and the local environment, as well as the infrastructure and some core services of the Amazon cloud technology platform, including the elastic high-availability architecture on the Amazon cloud technology platform, architecture design principles, and the basic knowledge of on-premises architecture migration to the cloud.
  • Learn what the three storage services on Amazon Cloud Technology are. We will also introduce you to Amazon Relational Database Service (RDS) on Amazon Cloud Technology in this module
  • Learn about securing your applications built on Amazon Cloud, the shared responsibility model, and the identity and access management service, Identity and Access Management (IAM). At the same time, through an instructor demonstration, you will learn how to authorize an EC2 instance to access resources on S3.
  • Learn about the security aspects of securing your applications built on Amazon Cloud, the shared responsibility model and identity and access management services, how Identity and Access Management (IAM) authorizes EC2 instances to access resources on S3.
  • Learn to use Amazon CloudWatch, Amazon EC2 Elastic Load Balancing (ELB), and Auto Scaling to build an elastic and highly available architecture on Amazon Cloud Technology. The instructor will lead you through the construction process of this elastic and highly available architecture through demonstrations. Finally, this module will introduce you to what is Well Architected Framework (WAF), summarize this series of courses, and provide further learning paths for you to learn to build microservice architectures, serverless applications, and big data applications on cloud platforms.

More developer-related content recommendations :

  • Architecture Center : The Amazon Cloud Technology Architecture Center provides cloud platform reference architecture diagrams, vetted architecture solutions, Well-Architected best practices, patterns, icons, and more. [https://aws.amazon.com/cn/architecture/?intClick=dev-center-2021_main&trk=d53a1c8e-6978-40d1-855f-3a41a9ee6054&sc_channel=el]
  • Builder’s Library : Learn how Amazon Cloud Technologies builds and operates software. [https://aws.amazon.com/en/builders-library/?cards-body.sort-by=item.additionalFields.sortDate&cards-body.sort-order=desc&awsf.filter-content-category=all&awsf.filter- content-type=all&awsf.filter-content-level=*all&trk=0958b811-ba51-4288-83da-c324953e8b1f&sc_channel=el]
  • SDK : https://aws.amazon.com/cn/tools/?intClick=dev-center-2021_main&trk=ce5bdfe3-ceb1-42d4-aa1b-665461427997&sc_channel=el

2. Friendly to newbies

According to Amazon Cloud Technology’s policy, all individual users can create a free account for a period of 1 year and there is also a part of the permanent free plan that can be used, which is enough to meet all the needs of beginners to practice Amazon Cloud Technology! ! !

Free Tier Introduction : [https://aws.amazon.com/cn/free/?nc2=h_ql_pr_ft&all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free Tier Types =all&awsf.Free Tier Categories=all]

3. Creating users is easy to understand

Creating a User Guide will walk you through setting up an Amazon Cloud Tech account and development environment. Let your Amazon Cloud Tech account interact and provision any resources you need to programmatically build your system.

In creating a user guide you’ll learn how to :

  • Create a New Amazon Cloud Technology Account
  • Secure root user
  • Create an IAM user to use in the account
  • Setting up the Amazon Cloud CLI
  • Setting up the Cloud9 environment

4. Advantages of Amazon Cloud Technology

  • Speed ​​advantage
  • Global advantage
  • Global deployment in minutes
  • Amazon Cloud Technology Global Infrastructure
  • Each zone consists of one or more data centers
  • Designed for fault isolation
  • Amazon Cloud Technology Availability Zone replication for resiliency.
  • Amazon cloud technology edge sites help customers achieve high availability and high response

5. Summary

  • When new technologies, new languages, and new frameworks come, don’t hesitate to get them, it’s very interesting.
  • When a new position comes, don’t hesitate to get him, it’s valuable.
  • When a new field, a new industry, and a cross-border approach come, get it done as if you were playing.
  • In short, keep expanding, expanding, and expanding your comfort zone, actively learning and challenging new things.

Leave a Comment

Your email address will not be published. Required fields are marked *