Quantcast
Channel: Cloud Training Program
Viewing all articles
Browse latest Browse all 1891

Amazon EC2 | Amazon Elastic Compute Cloud | How to Connect

$
0
0

In this post, I will cover Amazon EC2 (Elastic Compute Cloud), a computing service from AWS.

Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) Cloud. Using Amazon EC2 eliminates your need to invest in hardware upfront, so you can develop and deploy applications faster.

Topics We” ll Cover:

What Is Amazon EC2?

EC2

Amazon EC2 is a web service that provides secure and resizable compute capacity in the cloud to the users. The EC2 allows us to configure the capacity, and it also provides complete control of all your computing resources. An AWS user can increase or decrease instance capacity by using the Amazon EC2 web interface or an application programming interface (API). A developer can automatically code an application to scale up and down instances with AWS Auto Scaling. To manage multiple instances, a user can also define an autoscaling policy and group.

Learn With Us: Join our  AWS Solution Architect Training and understand AWS basics in an easy way.

Why We Use Amazon EC2?

Organizations have to invest a considerable amount in buying hardware components, and managing them is more hectic than buying, so the Amazon EC2 eliminates the investment in hardware upfront so that you can develop and deploy applications faster. Using Amazon EC2, you can launch as many or as few virtual servers as your need, manage storage, and configure networking and security. Amazon EC2 enables you to scale up or down to handle changes in requirements or spikes in popularity, reducing your need to forecast traffic.

How does Amazon EC2 Work?

It’s pretty simple to get up and running with Amazon EC2. You have a choice of pre-configured, templated Amazon Machine Images (AMI) to use for a quick launch. Or, if you prefer, you can create your own AMI that contains all of your libraries, data, applications and relevant configuration settings. Amazon EC2 allows you to customize settings by configuring security and network access. Because you can instantly scale your VM environment to address usage spikes or drops, you have the power to control the number of resources being used at any point in time. The service’s elasticity supports the minimized costs of a “pay-for-what-you-use” billing model.

Amazon EC2

Features Of Amazon EC2

  • Reliable: Amazon EC2 offers a highly reliable environment where the replacement of instances is rapidly possible.
  • Secure: Amazon Virtual Private Cloud where Amazon EC2 works and provides a secured and robust network to resources.
  • Flexible tools: Amazon EC2 provides the tools for developers and system administrators to build failure applications and isolate themselves from common failure situations.
  • Inexpensive: Amazon EC2 wants us to pay only for the resources that we use on an hourly basis. It includes multiple purchase plans such as On-Demand Instances, Reserved Instances, Spot Instances, etc. which we can choose as per our need.

Use Cases Of Amazon EC2

  • Hosting environments: Primarily Amazon EC2 uses for hosting a website and application on the cloud. The best part of Amazon EC2 is that it provides a Dynamic and Scalable environment where its compute capacity can grow as per the need of the application. Companies like Netflix and Reddit are the best proof of EC2 hosting success.
  • Backup and disaster recovery: Companies hold Amazon EC2 as a medium for performing disaster recovery for both active and passive environments. Amazon EC2 turns quickly in case of an emergency, which means businesses have access to the fastest failover with minimal downtime of their application.
  • High-performance computing: The Amazon EC2 provides virtualized servers with high-performance networking and high compute power. Organizations like NASA and Pfizer employ high-performance computing using the Amazon EC2 Instance.
  • Development and test environment: Amazon EC2 is scalable, so now the organization can create and deploy large scale testing and development environment with unprecedented ease. Amazon EC2 eliminates the investments in hardware and also provides a scalable solution
  • Banking and financial sector: These sectors demand maximum scalability and security, and Amazon EC2 provides both. Amazon cloud builds trust by providing highly secure services. Retail and commercial banks, insurance providers, and significant payment platforms rely on AWS.

Steps To Create Amazon Windows EC2 Instance

Note: If you don’t have an AWS account, check our blog on how to create AWS Free Tier Account

Step 1: Log in to your AWS account and go to the EC2 dashboard to launch a new instance.

Amazon EC2 Connect
Step 2: In the Name and Tags step you can add tags to an instance, here tags help you to enable categorize AWS resources in different ways, for example, by owner, environment, or purpose. For example, you could define a set of tags for your account’s Amazon EC2 instances that help you track each instance’s owner and stack level.

EC2 Connect

Step 3: Select Windows under QuickStart and Select Microsoft Windows Server 2019 Base AMI. You can also select other AMI as per your need but here we launching a Windows Server, so we have to select the Windows Server 2019 Base AMI.

Elastic Compute CloudStep 3: Select the t2.micro instance type, if you want you may select another instance type but they are chargeable so we choose the t2.micro instance type which is eligible for the free tier and limited resources.

Instance

Step 4: Select an existing key pair or create a new one, we will Create a new one, enter the name of the Key-pair as Windows-Key and Create the Key Pair.

EC2
How to Connect

Also Read:  Our Previous Blog On SDLC Automation

Step 5: Now, keep everything default and click on Launch Instance.


Step 6: Now Click on View all Instances.

Do Check: Our Blog Post on AWS SNS for an overview.

Step 7: Here, you shall see your instance is launching and the Status check is Initializing, wait for some time.


Step 8: Refresh and you shall see your instance is Up and Running, and the Status check has changed to 2/2 checks.

EC2 Status

Also, Visit Our Blog post on  AWS Secrets Manager for an overview.

Steps To Connect Amazon Windows EC2 Instance

Step 1: Firstly we have to select the Windows instance From the Running Instance of the EC2 dashboard and click on Connect.

Step 2: Here we have to select the RDP (Remote desktop protocol) Client and then Download the RDP File and save it somewhere safe then, and we need a password to access the RDP file, so click on Get Password.

RDP Client

Read More: About Amazon AWS Elastic Beanstalk. Click here

Step 3: At this step of launching, we have to upload the Key-pair (the key which we have created in the earlier step). Click on Browse and then select the key and click on Decrypt Password. This provides us with a usable password.

Password

Also, Check Our blog post on AWS Inspector. Click here

Step 4: After submitting the Key-pair here the Password is Generated, copy and save it somewhere safe.

Decrypt Password

Step 5: Now open the Remote Desktop File from downloads for launching the Windows instance. If your local computer is a Mac, you will need to download “Microsoft Remote Desktop” from the App Store to be able to open your RDP file.

RDP File

Also, Read Our blog post on AWS Certified DevOps Engineer Professional. Click here

Step 6: After opening the RDP file click on Connect to launch the Window instance.
Note: Windows has the Remote Desktop Connection Application pre-installed; so for other OS like mac you need to download the Microsoft Remote Desktop app from the Mac App Store.

connect RDPCheck Out: Our blog post on AWS Web App Deployment. Click here

Step 7: Here we have to provide the credentials for accessing the Instance so we have to Enter the Password That we copied in step 4 and click on Ok.

Credentials

Step 9: Click on Yes.

Permissions

Step 10: So we have successfully connected to an Amazon Windows Instance, here we perform all our operations and task that we are performing on the normal windows operating system.

connected window instance
That’s all our Amazon Windows EC2 instance is up and running. To know more about AWS please check our references section.

Check out what is AWS DevOps here.

Related Links/References

Next Task For You

Begin your journey towards becoming a Certified AWS Solution Architect Associate by joining our FREE Informative Class on Amazon AWS Solution Architect Certification For Beginners & Q/A by clicking on the below image.
Free Masterclass

The post Amazon EC2 | Amazon Elastic Compute Cloud | How to Connect appeared first on Cloud Training Program.


Viewing all articles
Browse latest Browse all 1891

Trending Articles