Day-4 | AWS & Azure - How to Create Virtual Machines | Free DevOps Course | 45 days |#devops #aws
Résumé
TLDRIn this video, Abhishek continues the DevOps Zero to Hero course, focusing on advanced virtual machines. He explains how to create virtual machines on AWS and Azure, emphasizing the importance of automation in DevOps. The video covers the process of making requests to cloud providers, using AWS EC2 and Azure virtual machines, and introduces various automation tools like AWS CLI, API, CloudFormation, and Terraform. Abhishek also highlights the differences between AWS and Azure, including their free tier offerings and user interfaces. The session concludes with a practical demonstration of creating virtual machines on both platforms.
A retenir
- 👨💻 Introduction to Day 4 of DevOps course
- ☁️ Focus on advanced virtual machines
- 🛠️ Importance of automation in DevOps
- 🌐 Overview of AWS and Azure
- 📜 How to create virtual machines on AWS
- 📜 How to create virtual machines on Azure
- 🔑 Significance of key-value pairs in AWS
- 📈 Tools for automation: AWS CLI, API, CloudFormation, Terraform
- 🔄 Understanding hybrid cloud model
- 💡 Differences between AWS and Azure free tiers
Chronologie
- 00:00:00 - 00:05:00
In this video, Abhishek introduces Day 4 of the DevOps Zero to Hero course, focusing on advanced virtual machines. He encourages viewers to watch previous days' videos for context and outlines the topics to be covered, including creating virtual machines on AWS, Azure, and on-premise scenarios.
- 00:05:00 - 00:10:00
The session begins with a recap of the previous day's lesson on virtual machines, emphasizing the process of making requests to cloud providers like AWS and Azure to create virtual machines. Abhishek explains the terminology used in AWS, specifically the EC2 instance, and reassures viewers that he will guide them through the practical steps of creating a virtual machine.
- 00:10:00 - 00:15:00
Abhishek highlights the importance of efficiency in DevOps, explaining that instead of manually creating multiple virtual machines, automation should be utilized. He introduces the concept of AWS APIs, specifically the EC2 API, which allows users to automate the creation of virtual machines through scripting, thus saving time and reducing errors.
- 00:15:00 - 00:20:00
The video discusses various methods for automating the creation of virtual machines, including AWS CLI, AWS API, CloudFormation Templates (CFT), and Terraform. Abhishek emphasizes that while Terraform is popular for multi-cloud environments, AWS-specific tools like AWS CDK may offer better integration and support for AWS services.
- 00:20:00 - 00:29:37
Finally, Abhishek demonstrates how to create an AWS account and launch an EC2 instance through the AWS console. He also briefly compares the process with Microsoft Azure, noting differences in free account offerings and user experience. He concludes by inviting viewers to return for the next class, which will cover automation processes.
Carte mentale
Vidéo Q&R
What is the focus of Day 4 in the DevOps course?
Day 4 focuses on advanced virtual machines, specifically how to create them on AWS and Azure.
What are the main cloud providers discussed?
The main cloud providers discussed are AWS and Azure.
What is the importance of automation in DevOps?
Automation improves efficiency and reduces errors in routine tasks.
What tools are mentioned for automating virtual machine creation?
Tools mentioned include AWS CLI, AWS API, CloudFormation, and Terraform.
How does AWS EC2 differ from Azure virtual machines?
AWS EC2 instances are created through the AWS console, while Azure virtual machines are created through the Azure portal.
What is the free tier offering for AWS and Azure?
AWS offers a free tier for one year, while Azure provides a shorter free trial.
What is the significance of the key-value pair in AWS?
The key-value pair is used to log into the EC2 instance securely.
What is Terraform?
Terraform is an open-source tool for automating infrastructure across multiple cloud providers.
What is the AWS Cloud Development Kit (CDK)?
CDK is a proprietary tool for AWS that allows for advanced automation and resource management.
What is the hybrid cloud model?
The hybrid cloud model involves using multiple cloud platforms for different resources.
Voir plus de résumés vidéo
Suna: The FREE Open Source Alternative to Manus AI
Nukes are way scarier than you think
2025 Will Be The Last “Easy” Year For Making Money Online
Absolute Prerequisite for Learning DevOps
"Mencho Is Alive"- Mexican Podcaster GAFE Reveals TRUTH About The Jalisco New Generation Cartel
My conclusions after using Etoro for one year | Copy Trading tips | Mistakes review
- 00:00:01hello everyone my name is Abhishek and
- 00:00:03welcome back to my channel so today we
- 00:00:05are talking about day four of our devops
- 00:00:08Zero to Hero course
- 00:00:09for people who are just watching our
- 00:00:11videos for the first time we are doing a
- 00:00:1345 days of complete devops course that
- 00:00:15is devops Zero to Hero and today we are
- 00:00:17at day four if you haven't watched our
- 00:00:19previous videos Day Zero day one day two
- 00:00:21and day three I would highly recommend
- 00:00:23you to go and watch those videos first
- 00:00:25so there is a demo of Zero to Hero
- 00:00:27playlist on my channel and those videos
- 00:00:29covers the previous topics and this is
- 00:00:33typically virtual machines part two so
- 00:00:35in the previous video we talked about
- 00:00:37virtual machines and uh you know where
- 00:00:40we talked about the evolution of virtual
- 00:00:42machines what is the server what is
- 00:00:44physical server how a physical server is
- 00:00:46different from a virtual machine what is
- 00:00:48the concept that allows you to create
- 00:00:50virtual machines and we also looked at
- 00:00:52how data centers are you know getting
- 00:00:56extinct you know previously even a
- 00:00:59startup used to have their own data
- 00:01:00center but now people are relying on
- 00:01:02platforms like openstack or AWS or Azure
- 00:01:05so we also talked about those things so
- 00:01:07it would be a really interesting one to
- 00:01:10watch part one before part two
- 00:01:13now today what we'll learn is we will
- 00:01:16learn about virtual machines in a
- 00:01:18advanced way we will talk about how to
- 00:01:20create virtual machines we will look at
- 00:01:22the top platforms or the top Cloud
- 00:01:24providers today you have AWS you have
- 00:01:26Azure and I'll also take a on-premise
- 00:01:28scenario so that if you're working in
- 00:01:31people might be working in different
- 00:01:33organizations so that everybody gets a
- 00:01:34feel of it like there is also Google
- 00:01:36Cloud platform but we cannot cover all
- 00:01:38of the topics so what I'll try to tell
- 00:01:40you is
- 00:01:42how to create a virtual machine on these
- 00:01:43platforms I'll talk about AWS I'll talk
- 00:01:46about Azure and then also say I'll also
- 00:01:48talk about how to create a virtual
- 00:01:49machine on on-premise let's say your
- 00:01:51organization has not shifted to cloud
- 00:01:53and they're still using their own data
- 00:01:55center they have their own servers so
- 00:01:56how to create a virtual machine on those
- 00:01:58so these are the different things that
- 00:02:00we would cover today
- 00:02:02okay so before we start the video I
- 00:02:04would like to just make a simple request
- 00:02:06that you know I'm making these videos
- 00:02:08with at most honesty and you people know
- 00:02:11that it's a free devops course so the
- 00:02:13only thing that I would expect from
- 00:02:14everyone is to promote these videos
- 00:02:17within your uh Circle and if anybody who
- 00:02:20is looking for these videos like
- 00:02:21somebody is passionate about learning
- 00:02:23devops then please do share these videos
- 00:02:25with them so that everybody is benefited
- 00:02:27out of these videos
- 00:02:29perfect so going ahead firstly just a
- 00:02:33precap of uh sorry recap of what we have
- 00:02:35learned yesterday so yesterday we
- 00:02:37learned that in devops to create a
- 00:02:39virtual machine you basically make a
- 00:02:42request to one of your Cloud providers
- 00:02:43I'll talk about on-premise later so for
- 00:02:45now just understand that we are dealing
- 00:02:47with Cloud providers okay
- 00:02:50so what we would do is we'll make a
- 00:02:52request with one of these Cloud
- 00:02:53providers let's say we have we are only
- 00:02:55talking about AWS and Azure so as an end
- 00:02:57user what you do is from your personal
- 00:02:59laptop let's say this is your personal
- 00:03:01laptop and you are a guy who is sitting
- 00:03:03in front of this laptop and you are in
- 00:03:07search of a virtual machine so what you
- 00:03:09do you would log into something called
- 00:03:11as
- 00:03:13AWS console
- 00:03:15okay by logging into AWS console what
- 00:03:19you do is you make a request to AWS
- 00:03:21asking for a virtual machine in AWS
- 00:03:24terminology it is called ec2 instance
- 00:03:26don't worry if you are not aware of AWS
- 00:03:28in this video we will directly look at
- 00:03:30the AWS console I'll show you how to
- 00:03:32create a virtual machine and today we
- 00:03:34are not even deep diving into AWS so
- 00:03:36don't worry even if you have zero
- 00:03:38knowledge on AWS I'll show you
- 00:03:39theoretically as well as practically how
- 00:03:42to create a virtual machine on AWS and
- 00:03:44also we'll take a look at Microsoft
- 00:03:46azure
- 00:03:47so for theoretical understanding what
- 00:03:50happens is there is a developer or there
- 00:03:52is a person called X Mr X and what Mr X
- 00:03:55would do is sitting in front of his
- 00:03:57laptop he'd open his favorite browser
- 00:03:59and in his favorite browser he would
- 00:04:01search for AWS console once he go to the
- 00:04:04AWS console he can make a request with
- 00:04:07the AWS through the UI to
- 00:04:10create a virtual machine or ec2 instance
- 00:04:13and what AWS would do is AWS in response
- 00:04:16would send you back
- 00:04:17something like an IP address
- 00:04:21and all the specification related to
- 00:04:23this virtual machine that you have
- 00:04:24requested
- 00:04:25This is the End thing that happens or
- 00:04:28this is the overall thing that happens
- 00:04:30if you are trying to create a virtual
- 00:04:31machine from the UI and the same thing
- 00:04:33happens with Microsoft Azure as well
- 00:04:35right so whether it is Microsoft Azure
- 00:04:36or whether it is AWS the process is the
- 00:04:39same again there is a person who is
- 00:04:41sitting in front of his laptop let's
- 00:04:42call him Mr X and what Mr X would do is
- 00:04:45instead of
- 00:04:47AWS on his favorite browser he will try
- 00:04:49to open Microsoft Azure portal which is
- 00:04:53Azure portal right once he opens the
- 00:04:56Azure portal don't worry we'll also take
- 00:04:58a look at this uh practically on the
- 00:05:00Azure portal he will do the same thing
- 00:05:01he would ask the Azure to create a
- 00:05:04virtual machine in Azure terminology we
- 00:05:06call it virtual machine only and Azure
- 00:05:09would send back him the same response
- 00:05:11right the IP address plus all the
- 00:05:13specifications that are required to
- 00:05:14login
- 00:05:15so this is the process but
- 00:05:18the important thing that we would
- 00:05:19understand is okay for creating one
- 00:05:21virtual machine everything is fine like
- 00:05:23you know you can log in you can go
- 00:05:26through the UI and you can create a
- 00:05:27virtual machine but as a devops engineer
- 00:05:29always from class 1 I teach you the same
- 00:05:32thing that we have to focus on
- 00:05:34efficiency let's say you get hundred
- 00:05:37such requests okay because in your
- 00:05:39organization you might have thousands of
- 00:05:40people and if you get hundreds of the
- 00:05:43same requests right every day you
- 00:05:44receive the same request people ask you
- 00:05:46to create a virtual machine so would you
- 00:05:49go to your AWS portal 100 times and
- 00:05:51create a virtual machine you can do that
- 00:05:53but that does not add efficiency so in
- 00:05:57devops every day what we are talking is
- 00:06:01the same thing that is efficiency so as
- 00:06:04a devops engineer you should always
- 00:06:06Target in improving the efficiency of
- 00:06:08your routine task so what you do is you
- 00:06:12would look for automation
- 00:06:15so AWS people also provides you the
- 00:06:19support for this automation right
- 00:06:21because you are talking to AWS AWS has
- 00:06:23to develop a feature that allows you to
- 00:06:26automate the stuff on AWS right so what
- 00:06:28happens is in general this is called a
- 00:06:31AWS API
- 00:06:33okay so AWS provides you API so in this
- 00:06:36case we are talking about ec2 so it is
- 00:06:38called as AWS ec2 API right what is it
- 00:06:42called AWS ec2 API because we are
- 00:06:45talking about ec2 for now we are only uh
- 00:06:48talking about the AWS ec25 similarly if
- 00:06:50you want to create storage AWS supports
- 00:06:52AWS S3 API if you want to talk about
- 00:06:54volumes AWS support AWS EBS API or the
- 00:06:58something else so for now understand
- 00:07:00that AWS people have developed something
- 00:07:01called as AWS ec2 API and using this AWS
- 00:07:05ec2 API the end user or the devops
- 00:07:08engineer who is using his laptop what he
- 00:07:11can do is instead of directly accessing
- 00:07:13the Amazon.com or sorry Amazon console
- 00:07:16from his favorite browser what he can do
- 00:07:19is
- 00:07:20he can write a script okay what this
- 00:07:23user would do he would write a script
- 00:07:25and using this script what he would do
- 00:07:27he would make a call to the AWS
- 00:07:32ec2
- 00:07:34API right so he makes a call to AWS API
- 00:07:38and in this script what he'll say is I
- 00:07:40want to create 10 easy to instances okay
- 00:07:44or he'll just write a script and every
- 00:07:46time a user comes to him and asks for
- 00:07:47ec2 instance he would run the script and
- 00:07:49it would return one ec2 instance okay
- 00:07:51even if you are writing a script to
- 00:07:53automate the process for creating one
- 00:07:54ec2 instance and even if it is same in
- 00:07:57one minute of your regular time okay
- 00:07:59that is also called as a automation
- 00:08:01right because
- 00:08:03there is no manual intervention so when
- 00:08:05there is no manual intervention that
- 00:08:07means there are no errors right because
- 00:08:10manually you might commit some errors
- 00:08:12but if you are automating the process
- 00:08:14and automation is doing things for you
- 00:08:16so you are also avoiding errors and you
- 00:08:19are also saving your time so this is the
- 00:08:21process now
- 00:08:23coming to the script it can be done in
- 00:08:25multiple ways okay so I'll talk about
- 00:08:28the different ways that AWS will allow
- 00:08:30you to create or automate the stuff on
- 00:08:32AWS now the process would be same for
- 00:08:35Microsoft Azure as well so that is the
- 00:08:37reason why I'm not repeating AWS and
- 00:08:39Azure so for now understand that the
- 00:08:41process is same for any cloud provider
- 00:08:43today I am talking about AWS it can be
- 00:08:45Microsoft Azure it can be Google Cloud
- 00:08:46platform digitalocean or any cloud
- 00:08:48provider okay the process is the same
- 00:08:50what they would do is for the service
- 00:08:53that they are providing so it can be
- 00:08:54easy to service it can be storage
- 00:08:56service or any service what the cloud
- 00:08:58provider would do is they would write a
- 00:09:00API so the developers at Amazon what
- 00:09:03they would do is they have hundreds of
- 00:09:05services right Amazon provide you
- 00:09:07hundreds of services today
- 00:09:10and today we are dealing with ec2
- 00:09:12service
- 00:09:13in future we'll talk about the other
- 00:09:14services but for the easy to service
- 00:09:16there is a developer right or there are
- 00:09:18a bunch of developers what these
- 00:09:20developers would do is they would expose
- 00:09:22the API of This ec2 Server okay
- 00:09:26so this is the API
- 00:09:29now
- 00:09:31what happens is this API would receive a
- 00:09:33request
- 00:09:37and if it receives the request in the
- 00:09:39expected format as a response what we
- 00:09:41will do it would send you a
- 00:09:47easy to instance right so the AWS ec2 is
- 00:09:51AWS ec2 API is responsible for receiving
- 00:09:54the request and once it receives the
- 00:09:57request and the resource request is
- 00:09:59valid authenticated and authorized okay
- 00:10:01what I am talking about the three things
- 00:10:03one is the request that you are doing
- 00:10:05should be valid valid is following all
- 00:10:08the standards this ec2 API is expecting
- 00:10:10and then it should be
- 00:10:13authenticated what is authenticated the
- 00:10:16user who is making the request should
- 00:10:18have access to the AWS and then
- 00:10:20authorized okay sometimes as a user you
- 00:10:23might have access to AWS but you don't
- 00:10:26have access to or you are not authorized
- 00:10:28to create ec2 instance so all these
- 00:10:31three criterias have to be matched one
- 00:10:32is the request that the user is sending
- 00:10:34has to be valid then he has to be
- 00:10:36authenticated he has to be authorized
- 00:10:38once these three things are done what
- 00:10:40happens is as a devops engineer now you
- 00:10:43can write a script
- 00:10:47what your script has to do your script
- 00:10:49has to make an API call with AWS with a
- 00:10:53request that is matching all this
- 00:10:54criteria that is valid authenticated and
- 00:10:56authorized and as a output for the
- 00:11:00script you will get a ec2 instance now
- 00:11:02what is this script I have been talking
- 00:11:03about script script script all this
- 00:11:05while so now let's Deep dive and
- 00:11:07understand what is the script actually
- 00:11:08so the script can be multiple types one
- 00:11:11is through CLI
- 00:11:14okay so because we are talking about AWS
- 00:11:16let me call this as AWS CLI so as a
- 00:11:20devops engineer you can automate the
- 00:11:22creation of your virtual machines or ec2
- 00:11:24instance through AWS CLI 1 2 you can use
- 00:11:28AWS
- 00:11:32API itself directly right if you are
- 00:11:34familiar with the concept of uh let's
- 00:11:37say the rest API how to write a rest API
- 00:11:39and if you have exposure towards any
- 00:11:41programming language you can directly
- 00:11:43deal with AWS API and there are some
- 00:11:45modules like if you're talking about
- 00:11:46python python supports boto3 okay using
- 00:11:49boto3 module in Python you can directly
- 00:11:51make a request to the AWS API now this
- 00:11:54does not have to be uh I mean you don't
- 00:11:56have to be familiar at this point of
- 00:11:58time like even if you don't know uh
- 00:12:00python or Java or any programming
- 00:12:02languages you can still use AWS CLI to
- 00:12:04automate the process but for now you
- 00:12:06should understand that AWS also allows
- 00:12:09you to write your custom scripts or your
- 00:12:11own scripts and you know there are open
- 00:12:14source libraries or the models that are
- 00:12:16available and If For example I'm a
- 00:12:19familiar with python so in Python there
- 00:12:21is a model called boto3 and boto3 allows
- 00:12:23you to directly make a API call with AWS
- 00:12:26any service ec2 service or S3 service or
- 00:12:29any service now the next approach is AWS
- 00:12:31support something called as AWS CFT that
- 00:12:35is called as cloud formation templates
- 00:12:36so the cloud formation templates are
- 00:12:38templating language it's a classic
- 00:12:41template uh you AWS provides a
- 00:12:44definition or a proper structure if you
- 00:12:47provide this template to the AWS AWS
- 00:12:48will return you with 1 to n number of
- 00:12:51virtual missions that you have requested
- 00:12:52so these are the different approaches
- 00:12:55and finally there is also a great
- 00:12:57competitor that is available in the
- 00:12:58market that is terraform
- 00:13:03now if you put terraform aside for now
- 00:13:06because we have a separate class where
- 00:13:09we will talk about terraform and
- 00:13:10terraform is a uh you know is something
- 00:13:13that we cannot uh discuss for now
- 00:13:15because people have to have certain
- 00:13:16level of expertise to Deep dive into
- 00:13:18terraform and during the terraform class
- 00:13:21we will Master this uh we will learn
- 00:13:23Zero to Hero of terraform so far now
- 00:13:25just understand that terraform is one of
- 00:13:27the Alternatives that is available to
- 00:13:29automate your
- 00:13:30resource creation and the advantage with
- 00:13:32terraform is that if you look at these
- 00:13:34three things they are very specific to
- 00:13:36AWS right this is AWS CLI this is AWS
- 00:13:38API boto3 and this is AWS CFT but
- 00:13:42terraform I did not mention as AWS
- 00:13:44because one terraform multiple Cloud
- 00:13:46providers so terraform can automate your
- 00:13:48process in AWS it can automate your
- 00:13:50process in Azure it can automate your
- 00:13:52process in Google Cloud platform
- 00:13:53everywhere
- 00:13:54okay now what is happening here is using
- 00:13:58all of these things or any of these
- 00:14:00things what you can do is you can
- 00:14:02directly talk to the AWS API right so
- 00:14:05what are these things doing end of the
- 00:14:07day they are directly talking to the AWS
- 00:14:09API so who is writing the AWS API the
- 00:14:13devops engineer or the developer at
- 00:14:14Amazon what they are doing is they are
- 00:14:17exposing their ec2 instance
- 00:14:19using the API and as a devops engineer
- 00:14:22you can automate the process in your
- 00:14:24organization by using one of these
- 00:14:27things that is AWS CLI AWS API CFT or
- 00:14:31terraform or if you are not aware of all
- 00:14:33of these things what you can also do is
- 00:14:35you can also use the manual approach
- 00:14:37right as I explained even using the
- 00:14:39manual approach you can create but the
- 00:14:42problem with manual approach is that you
- 00:14:44have to let's say you receive 100
- 00:14:46requests so 100 times you have to log
- 00:14:48into the AWS console and you have to
- 00:14:50create virtual machines one by one that
- 00:14:52is against the pattern of devops because
- 00:14:55you are doing it in a inefficient way in
- 00:14:58devops we always talk and if in devops
- 00:15:01we always learn the efficient ways so
- 00:15:03these are the different processes that
- 00:15:05are available
- 00:15:06so in an interview you can say any of
- 00:15:09these things like let's say somebody
- 00:15:11asks you in an interview how do you uh
- 00:15:13create 10 virtual machines at once or
- 00:15:15what is the automation that you are
- 00:15:17using in your organization for
- 00:15:18infrastructure creation what is a
- 00:15:20virtual machine virtual machine is an
- 00:15:21infrastructure right or ec2 instance is
- 00:15:23an infrastructure so people will ask you
- 00:15:26what is the tool that you are using for
- 00:15:28infrastructure automation now the very
- 00:15:31popular tool that is available in the
- 00:15:32market is terraform but remember as I
- 00:15:35mentioned in our previous classes don't
- 00:15:37do something because that is popular or
- 00:15:40don't do something because it has to be
- 00:15:43done
- 00:15:43always look at your organization what is
- 00:15:47your organization doing let's say your
- 00:15:48organization is completely focused with
- 00:15:50AWS and in future also they only want to
- 00:15:53deal with AWS okay you can use any of
- 00:15:55these things you don't have to
- 00:15:57definitely move to terraform right you
- 00:15:58can either use AWS CLI API or CFT and
- 00:16:02AWS also supports additional things
- 00:16:04sorry I forgot to mention that is AWS
- 00:16:05cdk
- 00:16:07okay that is AWS Cloud development kit
- 00:16:09which is recently introduced so you have
- 00:16:12four different options right either you
- 00:16:14can use CLI API CFT or cdk so personally
- 00:16:18if you ask me if your organization is
- 00:16:20very focused on AWS and you know that
- 00:16:23your vision is AWS like you know next 10
- 00:16:25years or 15 years your organization is
- 00:16:26going to stick with AWS you can use cdk
- 00:16:29over terraform because cdk provides
- 00:16:31Advanced or more uh benefits over
- 00:16:34terraform okay so in an interview you do
- 00:16:36you don't have to always mention that I
- 00:16:38am using terraform in the organization
- 00:16:40no you can say our organization using
- 00:16:43AWS cdk because cdk is very specific to
- 00:16:47AWS and AWS has decided that they have
- 00:16:51their initial support let's say AWS is
- 00:16:53launching a new service
- 00:16:54okay this service is called AWS XYZ so
- 00:16:58the developers at AWS they have to write
- 00:17:01an API for it right similar to ec2 they
- 00:17:03have to write an API for XYZ now once
- 00:17:06they write this API who is going to get
- 00:17:08the first support terraform or cdk
- 00:17:10obviously cdk because cdk is a
- 00:17:13proprietary tool of AWS whereas
- 00:17:15terraform is a
- 00:17:16open source tool which is developed and
- 00:17:19maintained by hashicorp or the other
- 00:17:21community members so to have initial
- 00:17:23support or to have initial access for
- 00:17:25any automations or database cdk is far
- 00:17:28better than terraform
- 00:17:29similarly CLI API or CFT as well so
- 00:17:33always choose your answers wisely and
- 00:17:36whenever you are projecting yourself for
- 00:17:37a devops interview make sure that your
- 00:17:39Basics are and your foundation is clear
- 00:17:42now you might ask me then when is
- 00:17:44terraform used so you know there are
- 00:17:46some organizations or most of the
- 00:17:48organizations these day or these days
- 00:17:51are choosing the hybrid Cloud pattern
- 00:17:53okay what is this pattern called it's
- 00:17:55called hybrid Cloud pattern so what we
- 00:17:58are doing in the hybrid cloud model is
- 00:18:00that they have their virtual machines in
- 00:18:03one Cloud platform they have their other
- 00:18:05resource infrastructure in a different
- 00:18:07Cloud platform either it can be because
- 00:18:09of the efficiency let's say Google Cloud
- 00:18:11platform Google Cloud platform is very
- 00:18:13popular for its Ai and ml stuff okay if
- 00:18:16you are talking about machine learning
- 00:18:17or artificial intelligence Google Cloud
- 00:18:19platform leads or it's a compared to be
- 00:18:23better than these things or you know
- 00:18:25some people prefer kubernetes on Google
- 00:18:28so that's why these days organizations
- 00:18:30are choosing hybrid Cloud Model they
- 00:18:32have their Ai and ml stuff on Google
- 00:18:34they have their other stuff like RDS or
- 00:18:37something on AWS it's a individual
- 00:18:39Choice uh depending upon the
- 00:18:40organization requirements to
- 00:18:41requirements so that's why if you are
- 00:18:43using a hybrid Cloud Model terraform is
- 00:18:45definitely a best fit for you because
- 00:18:47you have to automate infrastructure
- 00:18:49across the different Cloud platforms
- 00:18:51whereas if you are in a single Cloud
- 00:18:53platform and your organization will
- 00:18:54stick to be in a single Cloud platform
- 00:18:56then choose your answer wisely and go
- 00:18:58with either cdk CLI API or if you're on
- 00:19:01Azure you can talk about Azure resource
- 00:19:03manager because those things are pnas or
- 00:19:05they have early access to any resources
- 00:19:08on that cloud platform
- 00:19:10perfect I think now we have talked a lot
- 00:19:12about these things now let's get
- 00:19:14practical right so you need to
- 00:19:16understand how to manage or how to deal
- 00:19:18with these things so before that firstly
- 00:19:21I'll show you how to deal with AWS
- 00:19:23through the UI and once we understand
- 00:19:25that probably we can talk about the
- 00:19:28automation that is using CLI or CFT or
- 00:19:30something and parallel here also show
- 00:19:32you with Microsoft azure
- 00:19:35let me just stop sharing the screen and
- 00:19:38go with a new one
- 00:19:40uh okay
- 00:19:42so how do I do that here if I click on
- 00:19:45share
- 00:19:48document
- 00:20:07perfect
- 00:20:14okay sorry I am still finding my screen
- 00:20:17just keep my moment
- 00:20:19okay perfect so now I'm sharing my
- 00:20:24AWS console screen right let's say you
- 00:20:26don't have access or you are very new to
- 00:20:28cloud and you want to create an account
- 00:20:30with AWS it's a very simple uh practice
- 00:20:32what you have to do is you have to come
- 00:20:34here okay go for sign in dot aws.com
- 00:20:37okay or you can simply click on uh AWS
- 00:20:41console uh just go to your browser and
- 00:20:43say AWS console it will redirect you to
- 00:20:45this page if you have already have an
- 00:20:47account with AWS you can proceed with
- 00:20:50your sign in provide your user mail ID
- 00:20:52or if you don't have what you can do is
- 00:20:54you can come down and you can click on
- 00:20:56create a new AWS account once you click
- 00:20:58on create a new AWS account it would
- 00:21:00just ask you for some questions okay and
- 00:21:03you will be proceeded with creating an
- 00:21:05AWS account so there are no uh ifs and
- 00:21:08buts there like you know you can
- 00:21:09directly follow the step-by-step
- 00:21:11approach and finally you will be asked
- 00:21:13with the card details and once you
- 00:21:14provide the card details it will deduct
- 00:21:16uh if you are in India it will direct
- 00:21:19two rupees INR from your account just to
- 00:21:21validate that you are a authentic user
- 00:21:24and providing a valid card details and
- 00:21:27once you are done with that your AWS
- 00:21:28account will be created now don't worry
- 00:21:30that AWS will not charge you for any
- 00:21:33virtual machines that you are created if
- 00:21:34you are using a free instance I'll also
- 00:21:37show you how to use a free instance
- 00:21:39don't worry about it now let me just
- 00:21:41stop sharing for a moment so that I can
- 00:21:43hide my user details
- 00:21:46stop share
- 00:21:48and let me log in
- 00:21:55okay coming here
- 00:21:59so I have provided my user id uh sorry
- 00:22:03for not sharing the screen but I have to
- 00:22:04enter my password and uh my password
- 00:22:07details are entered now let me see
- 00:22:12let me go back and share my screen
- 00:22:21perfect
- 00:22:23so I hope you are looking at the right
- 00:22:25screen again perfect so now what you do
- 00:22:28is once you are done with it come here
- 00:22:30and search for the services so AWS
- 00:22:32provides you a bunch of services okay
- 00:22:34and you have to Choose Wisely what the
- 00:22:36service that you want to use so in my
- 00:22:38case I am sure that I want to use a AWS
- 00:22:41ec2 service so you can click on the ec2
- 00:22:43service
- 00:22:45and what you will do is you look at the
- 00:22:49instances or the services that are
- 00:22:51available here what you do is you would
- 00:22:53come to the AWS ec2 global view and
- 00:23:00uh perfect let me just go back here and
- 00:23:03what I'll do is I would go to the
- 00:23:06instances and what I'll do is I'll click
- 00:23:08on the launch instance okay so click on
- 00:23:11the launch instance and provide these
- 00:23:13details okay now what you are doing you
- 00:23:15are talking to the AWS uh CL sorry UI
- 00:23:18directly you are not doing any API calls
- 00:23:22or this is not a process of automation
- 00:23:23what you are doing everything is a
- 00:23:25manual process okay so what do you do
- 00:23:28here you would provide the details here
- 00:23:29let's say test okay let me call my AWS
- 00:23:32instance name as test and then you have
- 00:23:34to choose over the wide range of
- 00:23:37operating systems that AWS provides you
- 00:23:39you can use Amazon Linux you can choose
- 00:23:41Ubuntu Windows red hat for a first comer
- 00:23:44or if you are just learning about uh
- 00:23:46devops and everything I would prefer
- 00:23:48Ubuntu and I would recommend you to use
- 00:23:51Ubuntu because Ubuntu is widely used in
- 00:23:54the devops community but you can go with
- 00:23:56any other options as well and after that
- 00:23:59see this is very important choose free
- 00:24:02tire eligible okay because we want to
- 00:24:04try out things and we are not going to
- 00:24:08pay any amount uh to the AWS for the
- 00:24:10instances that we're using so always
- 00:24:11choose the free tire available what is
- 00:24:13the difference between free tire and the
- 00:24:15paid ones so in free tire you get very
- 00:24:18uh restricted amount of resources so
- 00:24:20here if you see I'm only dealing with
- 00:24:22one CPU and 1GB memory but if I am going
- 00:24:26to go to the subscription model or if
- 00:24:28I'm going to pay AWS then I can choose
- 00:24:31larger virtual machines here if you see
- 00:24:33T2 large I'm going I'm getting two CPUs
- 00:24:35and 8GB memory but I am going to be
- 00:24:37charged well if you are using the free
- 00:24:39tire available or free time eligible
- 00:24:41options you'll not be charged by AWS
- 00:24:43then
- 00:24:45after that for the very first time you
- 00:24:47have to create your key value pair with
- 00:24:49AWS what is key value pair so key value
- 00:24:52pair is something that would allow you
- 00:24:54to login to your ec2 instance okay once
- 00:24:57you create your AWS ec2 instance you
- 00:24:59would get the IP address but there has
- 00:25:01to be a password kind of thing to log
- 00:25:03into your virtual machine right so
- 00:25:04that's why click on create new key value
- 00:25:07pair okay let me call it as test key
- 00:25:09value pair or let me say test one one
- 00:25:12one and now
- 00:25:14go with the defaults choose RSA you
- 00:25:16don't have to know about uh you know Ed
- 00:25:19for now this is a different uh you know
- 00:25:22RSA is a kind of thing and Erie is a
- 00:25:24different uh encrypted public and
- 00:25:26private key methodology but for now just
- 00:25:28go with RSA that is default and pem pem
- 00:25:32should be fine for the private key file
- 00:25:34format
- 00:25:36now click on create key value pair that
- 00:25:39would be saved it would be downloaded
- 00:25:40and saved in your local this would be
- 00:25:42very useful to login once your key value
- 00:25:46pair is gone then it is almost
- 00:25:48impossible to log into your ec2 instance
- 00:25:50so make sure you save your key value
- 00:25:51pair
- 00:25:53then you know we are not going to talk
- 00:25:55about any of these things at this point
- 00:25:57of time I am not going to explain you
- 00:25:59what is a security group what are the
- 00:26:00vpcs and all at this point of time
- 00:26:02because today we are just learning about
- 00:26:04installing a virtual machine and uh for
- 00:26:07the beginners who are watching our
- 00:26:09videos I don't want to confuse them by
- 00:26:12explaining about the advanced concepts
- 00:26:14of a virtual machine or compute
- 00:26:15instances and then click on launch
- 00:26:18instance that's it now once you click on
- 00:26:20the launch instance your virtual machine
- 00:26:22is created
- 00:26:23you don't have to do anything else just
- 00:26:25wait for a couple of minutes go back to
- 00:26:27the instant screen your ec2 instance is
- 00:26:29available here okay it would take a
- 00:26:31couple of minutes now while we wait for
- 00:26:34this I would also parallely show you how
- 00:26:35to create instances on Microsoft azure
- 00:26:38you don't have to do anything new or
- 00:26:40anything fancy apart from uh the things
- 00:26:43that we are doing on AWS what you do is
- 00:26:45click on portal.azure.com okay on your
- 00:26:48browser go for portal.azure.com it would
- 00:26:51ask you for sign up and one good thing
- 00:26:53about Microsoft Azure is they have
- 00:26:55inbuilt integration with GitHub okay so
- 00:26:58if you are a user for GitHub user on
- 00:27:00GitHub you already have a GitHub account
- 00:27:02like like I do what I've done is I have
- 00:27:05signed up with GitHub if you see here
- 00:27:06this is a GitHub icon that I'm showing
- 00:27:08here so using GitHub I have logged in it
- 00:27:10would take less than couple of minutes
- 00:27:12for you to log in once you are done with
- 00:27:15it see here I don't I'm not holding any
- 00:27:17uh paid account with Microsoft Azure one
- 00:27:20difference between Azure and AWS here is
- 00:27:23if you're a new player or if you are
- 00:27:25just learning devops you know AWS
- 00:27:27provides you close to one year uh free
- 00:27:30membership on AWS whereas Azure only
- 00:27:33provides you some 30 to 45 days I'm not
- 00:27:35exactly I don't remember exactly but AWS
- 00:27:38provides you longevity so that you can
- 00:27:40play around and try AWS for more time
- 00:27:43Azure you have to buy uh after this one
- 00:27:46month or let's say no I want to create a
- 00:27:48virtual machine with Azure which I'm
- 00:27:50sure you I have to pay money so click on
- 00:27:53create resource okay or there is an
- 00:27:56option directly for virtual machines so
- 00:27:58I personally feel that the Azure user
- 00:28:00interface or user experience is slightly
- 00:28:03better than AWS like click on create
- 00:28:05virtual machine and provide the same
- 00:28:07details that you're going to provide for
- 00:28:09nav I don't hold a free account so if
- 00:28:12you are starting with a free Azure
- 00:28:13account then you just follow the same
- 00:28:15steps click on start I mean I'm not
- 00:28:18going to go with the pay and use I would
- 00:28:21go for start free but I'm already done
- 00:28:22with my free membership so if you if you
- 00:28:25have a free membership then you provide
- 00:28:27the same details that you have done with
- 00:28:29AWS and your virtual machine would be
- 00:28:31created on Azure as well so whether it's
- 00:28:34AWS or Azure the process is the same now
- 00:28:36if you see here our AWS ec2 instance is
- 00:28:39up and running okay once this AWS ec2
- 00:28:42instance is up and running you can
- 00:28:44either log in from the UI or using the
- 00:28:48key value pair you can also log in using
- 00:28:49the
- 00:28:50terminal
- 00:28:52so those things I'll show in the next
- 00:28:54class and I will also show you how to
- 00:28:56automate these things right because we
- 00:28:57should also look at the automation for
- 00:28:59now I just showed you how to create an
- 00:29:02account with AWS and Microsoft Azure how
- 00:29:04to create these resources through the UI
- 00:29:06but if you want to learn how to create
- 00:29:08them how to login into them using the
- 00:29:11automation process wait for my next
- 00:29:13class which would be tomorrow and in
- 00:29:15that video I'll show you how to automate
- 00:29:18the process I hope you watch I mean I
- 00:29:21hope you'll like this video if you like
- 00:29:23the video click on the like button if
- 00:29:25you have any feedback for me good or bad
- 00:29:27please do post that in the comment
- 00:29:29section I would happy to reply to each
- 00:29:31and every comment and finally
- 00:29:33don't forget to subscribe my channel if
- 00:29:35you haven't Abhishek virmala thank you
- DevOps
- Virtual Machines
- AWS
- Azure
- Automation
- EC2
- CloudFormation
- Terraform
- Cloud Providers
- Hybrid Cloud