What is EC2?
EC2, or Amazon Elastic Compute Cloud, is a service provided by Amazon Web Services (AWS) that allows users to rent virtual servers (instances) on the cloud to run applications. It offers scalable computing capacity, making it easier for developers to build and deploy applications without needing to invest in physical hardware.
Key Features of EC2:
- Elasticity: You can quickly scale up or down the number of instances based on your workload.
- Instance Types: EC2 provides a variety of instance types optimized for different use cases, such as compute-intensive tasks, memory-intensive applications, or general-purpose needs.
-
Flexible Pricing:
- On-Demand Instances: Pay for compute capacity by the hour or second with no upfront costs.
- Reserved Instances: Commit to using an instance for a specific period (e.g., 1 or 3 years) for a discounted rate.
- Spot Instances: Use unused EC2 capacity at a lower price, suitable for flexible or interruptible workloads.
-
Storage Options:
- Elastic Block Store (EBS): Persistent block storage for data that persists independently of the instance lifecycle.
- Instance Store: Temporary storage tied to the lifecycle of the instance.
- Security: Provides features like Virtual Private Cloud (VPC), security groups, and IAM roles to secure access to resources.
- Global Availability: Instances can be deployed in multiple geographic regions and availability zones for redundancy and low-latency access.
- Integration with Other AWS Services: Seamlessly integrates with AWS services like S3, RDS, and Lambda for a complete cloud ecosystem.
Common Use Cases:
- Web hosting
- Application development and testing
- Big data processing
- High-performance computing
- Running containerized applications using services like Docker or Kubernetes
EC2 is a foundational component of AWS's Infrastructure as a Service (IaaS) offerings, providing the flexibility and control needed to customize the computing environment to specific requirements.
The Steps
Log into the Browser and search for AWS.
Create your account.
Log into the account after the creation. Below is the environment of the AWS after the account creation.
- In the search box, search for EC2, after poping up, click the box. In the box, click on Instances
- Click on** Launch Instances**
- Click the box and give the Instance you wanted to create a name of your choice.e.g 'ambassador'.
- Click on the 'Add additional tags' icon to add more tags to the instance. Tags are for identification.
- Clicking on the additional tags will bring this below;
- Click on Stockholm icon to select the** Region**.
- Scroll to the Application or OS image region to select the type of Image suitable for your operation.
Select the kind Instance that won't cost so much.
Create a Key Pair name.
- On the Network Security, Select Allow Http from the internet
- On the Configure Storage, you can increase the memory.
Click the Launch icon.
It has successfully launched.
- Click on Connect to Instance.
- Click on RDP Client Icon
- Click on Download Remote Desktop file
- Go to the Desktop file to open it up
- Click on the Get password
- Click on upload private key file and then click Decrypt Password
- Click on the Key Pair Downloaded and Open.
- After the Download of the Key Pair, Decrypt Password
- The Password after been Decrypt. Copy it, and Go to RDP File been downloaded to connect the EC2 Instance.
- The environment of the Instance
- Opening of PowerShell in the EC2 instance environment, run it as an Administrator, to Install the Web-Server Management Tool in it.
The environment of the Web-server after the installation in the EC2 Instance.
- Return to the AWS account to copy the Public IP address to indicate that something has been install on the EC2 Instance and is on the Browser.
- The environment of the Browser.
Top comments (0)