There can be two scenarios while predicting the required compute power. We may over-estimate the requirement, and buy a stack of servers that will of no use or maybe under-estimate the usage, which may affect the functionality of our application. So, we need resizable and scale up and scale down mechanism or service. So we have EC2 (Elastic Compute Cloud) service from AWS.
EC2 is a web service provided by Amazon Web Services that provides resizable compute capacity in the cloud. They are resizable because the user can scale up and scale down the number of instances as per their requirement. Ec2 Instances can be Launched in one or more geographical regions or locations and Availability Zones (AZs).
Types of Elastic Compute Cloud Instances
Amazon Web Service offers 5 types of instances which are as follows:
This type of instance is applicable for the application that requires a balance of Cost and Performance.
Example: Email responding systems where we need a prompt response as well as it should be cost-effective. Another side doesn’t require much processing.
This type of instance is applicable for the application that requires a lot of processing from the CPU.
Example: Data Analysis from a stream of Data.
This type of instance applicable for applications that are heavy in nature hence requires a lot of RAM.
Example: High-Performance Databases.
This type of instance applies to huge applications.
Example: Log processing Application
This type of instances provides a balance of memory, compute and networking resources
Example: web Servers and Code Repositories.
Below are the steps for Instance Creation: (Ubuntu 16)
Management Console: Enter your Username and Password
Select preferred location: Select a region from the drop down shown below and this can be done based on User’s requirement.
Go to Services and select EC2 services under Compute. This will take you to EC2 Dashboard, Click-on Launch Instance.
Follow Step by Step now:
Step 1:Choose an Amazon Machine Image (AMI)
Select Ubuntu 16 Ami as the requirement is to launch Ubuntu 16 instance.
Step 2: Choose an Instance Type
Select t2.micro because its free-tier eligible.
Step 3: Configure Instance Details
We can leave this as it is. It’s good to go with default options
Step 4: Add Storage
Step 5: Add Tags
Give name to your instance to keep track of all the instances.
Step 6: Configure Security Group
Step 7: Review Instance Launch
Review all your configuration and click-on launch, that will ask you to create key pair which enables you to login to that instance. Download the key pair and keep it safe. (this is the only way to login to the instance which we launched now).
AWS Certification Training || Web desigining & development || Associate in AWS SysOps