AWS Services For Devops Engineer
AWS Services For Devops Engineer
==>EC2
EC2 stands for elastic compute cloud and is infrastructure as a
service.
2)It’s simply the virtual machine that can be rented. This should be
the first service to start learning AWS cloud or DevOps.
3)EC2 can be used as the server where you can deploy an application
with the DevOps pipeline.
4)You can also run numerous DevOps tools like Jenkins in an EC2
instance.
5)Different types of EC2 instances are available like memory-
optimized, compute-optimized, etc.
==>S3
1)simple storage services are used to store the data which can be
encrypt. It is object based storage is used to store objects(files of
folders).These can be access globally. We can store up to 5TB and
100 bucket we can create. We can store the by types (aws cli,aws
console, REST API)
2)Bucket: if you create any file folder in root level is called bucket
3)Object: if you store a file in the bucket
4)Components of object (key:name of the object,value:Data in
bytes,version_id:show uniqueness of object,metadata:data about
the data)
5)By using the version if you delete the file, we can retrieve it by
using versioning (we have enabled by manually)
6)By providing ACL so everyone accesses using HTTP URL
7)By using create replica rule in management we can share data bw
two buckets (cross region replication)
8)Create the bucket using CLI launch instance and aws configure
command and for create aws s3 mb s3://bucket_name to remove
bucket aws s3 rb s3://bucketname
9)create files in local and copy to bucket by using aws s3 cp filename
bucketname
10)to delete the file aws s3 rm s3://bucketname –recursive, bucket
delete aws s3 rb s3://buckename –force with files
==>ELASTIC BEANSTALK
1)It is a service where we can easily deploy the application without
using devops tools
2)create a project in EBS and go to aws code pipeline start a repo and
take the repo http link and clone the repo using git with IAM https
aws pipeline code (create a iam user all admin access)
3)add some code from internet or local code to that repo folder and
git *, git commit -m “msg”, git push
4)create a pipeline using aws pipeline
==>Load Balancer
1)LB is used to balance the request from users in each server without
crashing the servers. LB will rotues the traffic to healthy servers and
identifies the unhealthy servers
2)Launch instance using Windows os with pem.key and 30gb
memory and connect the instance.
3)Go to session manager in the task baradd role and user and
install IIS web server for windowsOS
4)do the same setup launching another server
5)create a LB and group the servers with same security group and
check the output
Types of Load Balancers:
a) application LB: when we need a flexible feature set for our app
with http https traffic
b) network LB: when we need high performance and static IP address
for apps, centralized certificate deployment
c) gateway LB: when you need to deploy and manage third party
virtual appliances that support GENEVE
==>Auto Scaling
1) AWS Auto Scaling monitors your applications and automatically
adjusts capacity to maintain steady, predictable performance at the
lowest possible cost.
2) Benefit of autoscaling is that it eliminates the need to respond
manually in real-time to traffic spikes that merit new resources and
instances by automatically changing the active number of servers .
3)create auto scaling name,launch template(same as
instance),nextnextadd load balancers,nextwe can select
desired,min,max,nextcreate auto scaling.