Creating and Connecting VM on Amazon Web Services (AWS)

Python AI and Machine Learning for Production and Development Provisioning VM on Leading Cloud Platforms
14 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
This is a free item
$0.00
د.إ0.00
Kz0.00
ARS$0.00
A$0.00
৳0.00
Лв0.00
Bs0.00
B$0.00
P0.00
CA$0.00
CHF 0.00
CLP$0.00
CN¥0.00
COP$0.00
₡0.00
Kč0.00
DKK kr0.00
RD$0.00
DA0.00
E£0.00
ብር0.00
€0.00
FJ$0.00
£0.00
Q0.00
GY$0.00
HK$0.00
L0.00
Ft0.00
₪0.00
₹0.00
ISK kr0.00
¥0.00
KSh0.00
₩0.00
DH0.00
L0.00
ден0.00
MOP$0.00
MX$0.00
RM0.00
N$0.00
₦0.00
C$0.00
NOK kr0.00
रु0.00
NZ$0.00
S/0.00
K0.00
₱0.00
₨0.00
zł0.00
₲0.00
L0.00
QR0.00
SAR0.00
SEK kr0.00
S$0.00
฿0.00
₺0.00
$U0.00
R0.00
ZK0.00
Already have an account? Log In

Transcript

Hello everyone. In this video we are going to look into how to provision your Python AI and machine learning kit from AWS. So for that, there are two ways you can do that. First is you can go to tech letters dotnet. And at your, at our homepage, click on products. And on the left hand side, you will see all the products listed down, you can click on Python AI and machine learning suite.

And here, you can choose get it on AWS. So before we proceed, this video is covering how you can provision the VM on AWS. But the VM is also available on a zoo and Google Cloud. And if AWS is not your cloud provider, and you want to have it on Azure or GCP Google Cloud, we have separate videos for that so you can skip this video and follow the video. For your respective cloud provider. Okay, so for the one who wants to have it on AWS cloud, you can click on and get it on AWS, it will redirect you to our AWS marketplace.

So this is one way you can navigate to the virtual machine. The other ways you can go to the marketplace first, like over here, and then in the search box, you can type tech latest dotnet it will give you all the VM listing from Tech latest and you can navigate to Python AI and machine learning kit. Click on that and then click on continue to subscribe and then follow the instructions. Okay, so here you know to listen to the product. You can click on continue to configuration. Now, here fulfillment option is for this ami, you can select your region and continue to the launch.

Now, after the launch, you know you, you can look into the usage instruction or you can follow this video which is the same, you know, whatever is covered in the usage instruction will be covered in this video as well. So, you can launch it from the website or you can launch it from the EC to console, I guess so let's follow the website. Launch launch from the website option easy to install and by default it will be T two large which which comes with eight GB RAM and two virtual CPUs that should be enough for you to get started. So I suggest you go with those default if you want a more beefy instance you can always Go and select that VPC setting, it will create a new v PC if you want, you can select an existing v PC as well. Again, I suggest to create a new v PC because there are some firewall rules, which comes with this VM.

Basically, we want to have Port 80, Port 22 and Port 3389 open for this virtual machine. Port 80 is to access the ipython or Jupiter hub environment. Port 22 is to access the VM through putty. And then Port 3389 is to access the virtual machine through a remote desktop. So let's go with the default VPC and subnets. It will create a new one then security groups Go with the default or you can click on Create new based on similar settings.

So, this is what I was talking about. So, a good place as ci, you can give any name security group for a metal VM pro user from get place. You can see these three ports are open, and I will click on Save. It will save that setting and we'll click on launch. Right here it's saying there is some error in order to say when specifying a security group you must specify a group ID for each item. Okay, so might have missed something Let me create it again.

Place. Okay, I think this is fine. Let's try again. Okay, so here it is launching. And what we can do is we can wait for it to get for reason you can view the launch In easy to console, so I will click on the PC to console over here it will take me to the PC to console, it will ask you for login credentials if you are not logged in. While it is getting launched, we can also look into the usage instructions.

So here are the usage instruction, which we'll go through as well in this video, but to summarize, the usage instruction talks about once you log in, then you can access the VM through putty. First, how to login through putty is mentioned in this link. If you most of you might be aware, you know, if you have a VM, how to access it through putty. The next thing is once you connect to the VM, then you need to run this command called sudo password to boon to to change the password for the Ubuntu users. Note that the whole VM is configured Using this user ID, he won't do user ID. So that's very critical that you reset the password or set the password for a wouldn't be user, you will let you have access to the VM will be through this user.

And then you know, other restaurant instructions on how you are going to connect it through remote desktop and as well as using the Jupiter hub or ipython environment. So you can follow these instructions or you can follow this video. So let's go to the issue environment. Now here you can see our VM is up and running. I'll click on this VM. And here you can get the public IP for the VM.

So using this public IP, I will connect to that VM using putty and then we will update the password for the open to user. So we need to wait till the machine is up and running. Here it is saying the status check as initializing later. Complete. Now in the main, I will open putty. One thing you need to remember that you need to have the putty configuration done for connecting to the in situ instance.

And as I mentioned in our instruction over here, there is this link if you are new to how to connect to easy two instances using putty I highly recommend going through this link. So, this link from AWS will walk you through the steps to connect to any situ instance through putty and I am assuming that you are aware of that if not then you can go through this this link okay. So, in my case I have everything configured, the status check is complete now we will connect to the VM. Okay, so to connect, I will copy the public IP and go to putty and I will put my IP address make sure that your port is 22 you selected SS Click on Open click on yes login as well as the username and it will log in into our virtual machine. Now here what you need to do is you need to change the password or set the password for a boon to user.

Why we need to know this is because for SSH, you can connect it through the key, the private key you have, okay using putty Bert for the remote desktop, and as well as for the ipython environment which we'll discuss down the line, you need to have a password for the one two user. So for that, we'll just use sudo. Password O'Byrne to unit to use sudo because otherwise it will ask you for the existing password which you don't have. So here we'll enter the new password. And the password is successfully updated. So now you have it.

So once you are done with this, the next step is you can either connect to the VM and use the VM through the remote desktop, which I will show you or you can use the Jupiter or ipython environment. So if you prefer Remote Desktop you can go to start the search for remote desktop. Click on this one and put the sorry, copy the IP address and you can click on Connect. Accept the certificate you can select this ball so that it won't bother you next time and click on Yes. So now you can see it is connecting to the remote desktop environment. Again, it will ask you for 10 occasion for work the username you open to and password, sometimes, you know, it gives you error for the first login.

So you can try again and it will get connected. So this is your remote desktop environment. And you know, a lot of things are available on the remote desktop. We'll get into details about how to use the VM in our subsequent video. But at this point, you just need to know how to connect to the VM. One is you have the SSH shell to putty you can connect.

The other option is this one. And there is one more option which is more convenient, which is to use the ipython environment. So let's use the third option. So for that, again, you need to just copy the IP address go to the browser, use HTTP make sure that you're not using HTTPS. Yes, okay just type HTTP, your IP address, hit Enter, and then it will open the Jupiter hub, or ipython environment. In our subsequent videos, we will get into more details about what it is, but at this point you just need to provide the user ID and password and it will log in into the environment.

It takes some time to provision the Jupiter or ipython environment. So you need to have some patience. here it will span a server for you and now you will be able to access the Jupiter environment. And by default, it takes you to your home directory. And this home directory. If you click on this, it contains the sample quotes, the documents and other artifacts.

You can click on code and here you have all Sample codes. In our subsequent videos, we will go through each of these code and I'll explain you how to execute it. Okay, so this this, this is all about how you can provision your virtual machine on AWS environment. So just to summarize, you can go to Dignitas dotnet, go to products and select the product. And from here you can navigate to AWS marketplace or you can go search for regulators. It will take lettuce dotnet, it will list all our offers, select your offer from here, follow the instruction and get your VM provisioned.

Then either use putty to connect it or remote desktop to connect it or Jupiter hub to access the notebooks. So that That's all guys for this video. Thanks a lot for watching.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.