EC2 Fundamentals
Amazon: Elastic Compute Cloud (EC2) Basics
Amazon EC2 (Elastic Compute Cloud) is a service within AWS (Amazon Web Services) that lets you rent virtual computers (servers) in the cloud to run applications. Think of it as hiring a computer remotely that you can control, customize, and use just like a computer at home or work.
Here’s a breakdown of EC2 in simple terms:
What EC2 Is:
EC2 provides scalable virtual servers (instances) in the cloud. You can choose different types of instances based on your needs, like more CPU power, memory, or storage.
Why Use EC2:
add more instances when you need more computing power and shut them down when you don’t.
How It Works:
Start a new server (instance) by choosing an Amazon Machine Image (AMI), which is like a template of an operating system and basic software.
Choose the size and power of your instance. EC2 offers various instance types, like general-purpose, compute-optimized, or memory-optimized, to match different needs.
Set up a Security Group, which acts as a firewall to control who can access your instance.
An optional static IP that lets you keep a consistent address even if you stop and restart your instance.
Costs:
You’re charged for the time your instance runs. AWS also offers different pricing models: on-demand (pay as you go), reserved (long-term commitments for cheaper rates), and spot instances (cheaper rates with potential interruptions).
Elasticity:
EC2 is "elastic" because you can launch or terminate instances quickly. AWS also provides Auto Scaling, which can automatically add or remove instances based on demand.
Example:
If you have a website, you could use EC2 to host it. During high traffic times, you could launch additional instances to handle the load.
Note: For more details: https://aws.amazon.com/blogs/architecture/category/compute/amazon-ec2/

Comments
Post a Comment