Mark As Completed Discussion

AWS-EC2 [Amazon Elastic Compute Cloud]

AWS (Amazon Web Services) is the superhero of the tech world, providing a full range of services like a buffet, from computation and memory to databases, translation, networking, and more. The Elastic Compute Cloud, EC2, is the muscle that makes it all possible.

EC2 is like a high-end fitness club for developers, providing a secure and flexible cloud-based environment to get their work out. It's like a really smart weight machine that can adjust automatically to scale up or down servers as well as any architectures or computations you need. And EC2 is compatible with most of Amazon's services, so you can work out like a pro without lifting a finger. All you need to worry about is the bill, and you only pay for what you use.

Example of Use Case:

Let's look at an example of when EC2 could be used:

A successful entrepreneur has many users and an efficient product that is now in circulation. However, he also has other services that he believes could be widely popular and enjoyed by his clients. How could he promote his products to prospective customers? How can AWS help out?

A few ideas:

  • Simple notification service (SNS)
  • Computation through EC2
  • S3 for storage and memory access

All of these services are available through AWS. We can link them and accomplish this specific business use case. With on-demand billing, the entrepreneur can utilize the service (and pay for it/profit from it) only when he advertises to his customers or whenever that company publishes a newsletter.

Example of Use Case

Let's test your knowledge. Click the correct answer from the options.

Amazon ____________ is a web-hosting/cloud-based service that allows business subscribers to run application programs in the same computing environment as Amazon.com.

Click the option that best answers the question.

  • EC3
  • EC4
  • EC2
  • None

Let's test your knowledge. Is this statement true or false?

S3 services are used for memory storage.

Press true if you believe the statement is correct, or false otherwise.

Workflow

To harness the full power of AWS-EC2, we need to connect to the ecosystem and deploy apps on the edge of the platform (machines are on the “edge” of a given network when they are physically close to the systems or applications that are creating the data being used by the server).

First, we need to make an AWS account and an EC2 server (for its computing capacity). Then follow these steps:

  1. Create an AMI (Amazon Mission Image). This contains all of the application and software packages necessary to execute the application.

  2. Decide what hardware to use. In order to make this decision, you need to know the instance type as well as the size of the hardware, which is determined by the amount of workload needed.

  3. Customize cases for different contexts. For example, customize subnets, decide which instances stop or revoke actions, or choose whether or not to update versions once the instance is fully operational. All of these details can be managed here until we configure the instance. These initial steps are particularly dependent on both the operating system (OS) volume and fundamental hardware.

  4. Add storage, meaning assign more storage to the same operating system.

  5. Add tags. You can apply/create tags that allow you to find things more quickly and recognize an EC2 system. We create tags with relevant names so that we can understand which team they correspond to, know which accounting unit they relate to, and launch an instance goal. Recognizing an instance and knowing its purpose is critical when operating 700-800+ instances. It can be a packed schedule, so tagging comes to the rescue.

  6. Set up a security group. For the EC2 instance, you would establish a firewall, also known as a security group. This is where we allow or restrict connections from the outside community to this particular EC2 instance. This firewall restricts connections relying on the port number and IP address from both the outside and the inside.

  7. Review. Look over all of the parameters and double-check that they're exactly what is intended before clicking submit to activate an EC2 instance.

 Sample Workflow

Benefits of the EC2 Service:

  1. AWS EC2 allows clients to build crash-consistent EBS volumes without needing to restart their instances. The AMI will save the data collected from all I/O activities on each volume associated with the instance. It guarantees that if we start an instance from AMI, then it will revert to the exact identical state it was in before the image was created which was previously impossible.

  2. AWS can backup Amazon EBS volumes tied to Amazon EC2 instances with the help of crash-consistent backups which are generated by default. Since AWS maintains the crash consistency of the application state, customers no longer need to halt their instance or synchronize several Amazon EBS volumes linked to the same Amazon EC2 instance.

  3. AWS Inferential (a proprietary microprocessor designed by AWS to enhance machine learning functionality) is used in EC2 inf-1 instances. In the cloud, these instances provide a reduced cost for deep-learning applications.

  4. In the AWS Gov Cloud region, you can access Amazon EC2 D3 instances - the newest generation of HDD-storage instances. 48TB of local HDD storage is delivered using Amazon EC2 D3 instances.

  5. By accessing your instance's serial port with the EC2 serial console, you can debug boot, network setup, and other issues.

  6. Warm pools on Amazon EC2 allow the application to spread quickly. It also allows you to save money by requiring fewer instances to run continuously. Customers can optimize the elasticity of their application by generating a pool of pre-initialized EC2 instances that service application traffic rapidly with a warm pool.

Benefits of EC2

Are you sure you're getting this? Is this statement true or false?

AWS EC2 does not allow clients to construct crash-consistent EBS volumes without needing to restart.

Press true if you believe the statement is correct, or false otherwise.

Try this exercise. Click the correct answer from the options.

___________ is a web service that offers real-time monitoring for Amazon’s EC2 customers.

Click the option that best answers the question.

  • CloudWatch
  • IamWatch
  • AmWatch
  • All of these

Conclusion

EC2 is popular among Amazon customers because of its quick installations which allow users to access the computing infrastructure within minutes at a low cost. EC2 also lets customers easily increase and decrease the capacity for a long period of time and has a range of tools to secure data privacy. Finally, EC2 can service customers all around the world.

One Pager Cheat Sheet

  • AWS EC2 (Amazon Elastic Compute Cloud) provides secure and easy-to-scale cloud computing capacity and is compatible with most Amazon services, charging customers for only what they use.
  • WithAWS services such as Simple Notification Service (SNS),EC2, and S3, a successful entrepreneur can leverage on-demand billing to grow their business and advertise to prospective customers.`
  • Amazon EC2 provides businesses with an on-demand, cost-effective and efficient solution for running applications and scaling up or down their computing power.
  • S3 services, powered by Amazon Web Services, are a secure, durable, and highly scalable cloud-based memory storage system providing businesses with a reliable solution for storing and retrieving data.
  • To create and launch an EC2 server, we need to create an AMI, decide the instance type and size, customize cases, add storage, add tags, set up a security group, and review the parameters before submitting.
  • AWS EC2 allows clients to build crash-consistent EBS volumes without needing to restart their instances and provides 48TB of local HDD storage using EC2 D3 instances, along with access to its Inferential microprocessor for enhanced machine learning capability and its serial console for debugging, allowing applications to spread quickly with elasticity through warm pool pre-initialized EC2 instances.
  • AWS EC2 provides an easy way to create crash-consistent EBS volumes without needing to restart the instance, by taking an Amazon Machine Image (AMI) of the instance before it was shut down.
  • Amazon CloudWatch web service enables customers to monitor real-time metrics of their Amazon EC2 instances and predict and prevent unexpected outages.
  • Amazon EC2 is a popular and cost-effective cloud computing resource which can quickly be installed and adjusted, and is secure and accessible to customers all around the world.