Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
Like
Comments
Bookmark
Share
Add to Playlist
Report
007 [Hands-on] Cloud SDK Part - III
Abdullah Manzoor
Follow
8/9/2024
Category
😹
Fun
Transcript
Display full video transcript
00:00
Hey everyone, welcome back.
00:03
So now the demo time that how we are going to create bucket from our local machine using
00:09
this GS utility, a Google Cloud SDK.
00:15
So what I'm going to do, first of all, on a web console, I just want to navigate to
00:22
storage.
00:25
And we have already created two buckets.
00:28
So the first one will be from web console, then we have a cloud shell.
00:33
The next which we are going to create is the same command.
00:39
We are going to use gsutil makebucket and earlier we did one mistake.
00:45
We use this file protocol.
00:46
Now we are going to use this GS protocol.
00:50
And let's give the bucket name.
00:52
So bucket name will be bk-.
00:55
Now in this case, it will be a cloud SDK.
00:59
And let me just press enter.
01:02
So all those authentication and everything happens in a background.
01:05
You do not need to worry about it.
01:07
Only once you need to log in.
01:09
Let me just refresh and you will be able to see we are having three buckets now.
01:18
bk-cloud-sdk also got created.
01:21
Let me go inside and you will be able to see there is no content inside it.
01:26
We can upload file from here, we can upload folders from here, we can create a folder.
01:30
But what we are going to do, we are going to upload something from our cloud SDK.
01:37
So what are the files that are available here?
01:39
I have a lot many files are available.
01:43
So one of the files I'll take, let's see which one we will take.
01:48
Let's say results.txt file, I want to upload it.
01:51
I can just simply use gsutil cp for copying purpose.
01:58
We have a results.txt and where we want to upload.
02:05
So it will be inside the gs-bk-cloud-sdk All right.
02:17
Let me press enter and this particular file will be copied to this particular bucket.
02:24
Now let me just go to storage and how we can refresh it.
02:30
Either I can refresh the full web page also.
02:38
And you will be able to see exactly the same file results.txt is available.
02:43
So till now, inside this gs-utility, we use two commands like mb for making bucket and
02:53
there will be one more we use like a cp for copying the file.
02:58
Now same file, if you want to, let's say, copy from your Google Cloud to your local
03:03
machine, exactly the same thing also, you can always do it.
03:07
So let me just make copy.
03:08
But now instead of a source place will be a gs.
03:13
So first of all, before that, let me show you that what are the buckets are available.
03:20
Now how we can list all those buckets.
03:23
So what we can do very simple command gsutil ls and it will list down all those buckets
03:29
are available.
03:31
So currently in a shell, I have one file.
03:34
So let me just go and those files will try to download in our local machine.
03:39
So shell has a cat2.jpg.
03:43
So what we will do gsutil, same cp, but now our source place will be a Google Cloud storage
03:52
location.
03:53
So I'm going to select this one, oops.
03:59
And the file name will be cat2.jpg.
04:03
So it will be a cat2.jpg and where I want to put it.
04:10
So let me put in cat2.jpg only in my local machine.
04:17
Copy cat2.jpg.
04:20
How I can verify it?
04:21
So I can go to my file explorer, C drive user Ankit, it will be a C drive user Ankit.
04:32
And let's just search for cat, cat, cat, cat, yes, cat2.jpg file.
04:38
So this way, in a both ways, on a both direction, you can copy file either from your local machine
04:45
from where you are going to execute your gsutil command to your cloud storage or from cloud
04:51
storage to your local machine.
04:53
Let's see what are the things as of now we can do with this.
04:59
So if you want to know versions, you can use this one options.
05:04
We have ls, ls we have used, cp we have used, we can use even cat also.
05:10
That is for concatenation.
05:11
We have config, we have help.
05:14
So there are many more things and there are many more things are associated with different
05:20
services also.
05:22
So when we learn more and more things like a sign URL, so we have one dedicated section
05:27
specifically on a storage and a database where we are going to learn in a much more
05:32
detail.
05:33
Although we have one rm command also to remove something.
05:37
And if you want to remove some bucket, you can use this rb.
05:40
This is just to give you an idea that everything you can do directly from your local machine
05:46
also through this cloud SDK.
05:48
So whenever your shell doesn't work, whenever your web console doesn't work, you can always
05:53
come here and provisioning your resource, managing your resources.
05:58
Alright, so that is all about the cloud SDK.
06:01
See you in the next video.
Recommended
9:19
|
Up next
009 GCloud command for Module - 1
Abdullah Manzoor
8/9/2024
9:23
006 [Hands-on] Cloud SDK Part - II
Abdullah Manzoor
8/9/2024
6:43
005 [Hands-on] Cloud SDK Part - I
Abdullah Manzoor
8/9/2024
10:05
004 [Hands-on] Cloud Shell - 3
Abdullah Manzoor
8/9/2024
11:30
001 [Hands-on] Creating projects
Abdullah Manzoor
8/5/2024
23:44
002 [Hands-on] Assigning users to predefined IAM roles within a project
Abdullah Manzoor
8/5/2024
17:35
003 [Hands-on] Managing users in Cloud Identity (manually and automated)
Abdullah Manzoor
8/5/2024
5:22
002 [Hands-on] Establishing billing budgets and alerts
Abdullah Manzoor
8/5/2024
6:26
003 [Hands-on] Setting up billing exports to estimate dailymonthly charges
Abdullah Manzoor
8/5/2024
9:13
001 [Hands-on] Creating one or more billing accounts & Link projects
Abdullah Manzoor
8/5/2024
8:36
004 [Hands-on] Enabling APIs within projects
Abdullah Manzoor
8/5/2024
11:23
003 [Hands-on] Cloud Shell - 2
Abdullah Manzoor
8/5/2024
16:11
002 [Hands-on] Cloud Shell - 1
Abdullah Manzoor
8/5/2024
3:24
001 Section Introduction
Abdullah Manzoor
8/5/2024
5:01
004 Services & Availability Zones
Abdullah Manzoor
7/24/2024
6:12
003 Different GCP Services
Abdullah Manzoor
7/24/2024
8:39
002 [NEW] GCP Region & Zones
Abdullah Manzoor
7/24/2024
5:05
001 [NEW] What is GCP - Google Cloud Computing Platform & Why
Abdullah Manzoor
7/24/2024
1:35
funny video
Abdullah Manzoor
7/23/2024
0:57
tiktok 1
Abdullah Manzoor
7/23/2024
4:02
001 Course Introduction
Abdullah Manzoor
7/10/2024
2:29
005 Create GCP Free Tier Account
Abdullah Manzoor
7/10/2024
13:45
Quran:020 - سورة طه - القارئ: رعد الكردي - Surat Ta-Ha - recitation by: Raad A
Abdullah Manzoor
7/29/2024
39:30
Quran:017 - سورة الإسراء - القارئ: رعد الكردي - Surat Al-Isra - recitatio
Abdullah Manzoor
7/29/2024
0:14
quran-verses-beautiful-quran-recitation-quranrecitation-quranicvers-islam-quran-shorts
Abdullah Manzoor
7/29/2024