Aws-ec2
what is Ec2?
Ec2 is basically abbreviated as Elastic cloud compute which can be referred as the service which provide the cpu, ram, memory in the cloud as the virtual machine , moreover it is addressed as the elastic service because the service can be easily scaled up/down as per the user's choice.
why Ec2?
Management of the virtual machine is easy as compared to the harddrive servers other than cloud
Cost effective- We can pay as per the user's usage
Types of EC2 Instances in AWS?
General Purpose--> used for general purpose and basic level applications
compute optimised --> used for such as some scientific modeling or high-performance web servers
Memory optimized--> used for memory intense applications like bid data/gaming application,
Storage optimized--> Ideal for tasks which require lot of storage
Accelerated optimized--> Ideal for graphical processing applications which additionally requires lot of hardware as well like GPUs , FPGAs.
Regions & Availability Zones.
Region in basically geographical areas separated by a particular distance, it consists of one or more availability zones which are connected with the low latency ,high throughput. In simple words it can be mentioned as the data centers.
Practicals:
created an Ec2 Instance with the ubuntu
Key pair is nothing but a Pem key which is used to login to the instance from Mobaxterm or any other application
Access using public key as the bastion IP and login to the instance
sudo apt update--> latest packages update
Jenkins Deploy-->
it needs java as prerequisite to be installed so installed jdk package
and deployed Jenkins and logged in with the public ip
publickey:8080 after opening instance inbound 8080 to all traffic 0.0.0.0