What Is AWS EC2?
EC2 also called Elastic Cloud Compute (EC2), which is an AWS web service that allows user to rent virtual server on a AWS cloud platform . These virtual servers are called EC2 Instances . There are different types of EC2 instances which users can select on their requirement. For example if an user is doing any high compute work , they can choose t2.large or any higher EC2 instance type or if they are doing any low compute work they can choose t2.micro or t2.medium . EC2 service also provides variety of operating system images such as Ubuntu, CentOs , Amazon Linux, Windows and many more . EC2 instances can also be scaled up or down on the basis of traffic it receives by using a load balancer . In summary we can say EC2 provides flexible, scalable and cost effective solutions to organizations to run their application on AWS cloud platform .
How To Create An AWS EC2 Instance and Attach EBS to EC2 With Terraform?
Terraform is an IaaC tool, used to provision infrastructure on cloud platforms. In this guide, I will first discuss what is Terraform. Then I will discuss about AWS EC2 service. After this, I will walk you through the different steps to create an AWS EC2 Instance and attach an EBS volume to EC2 Instance using Terraform and then connect the EC2 Instance’s public IP to access the website.