4.4 S3 Versioning Demonstration

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
3 hours 27 minutes
Difficulty
Beginner
CEU/CPE
4
Video Transcription
00:01
In this video
00:03
we will enable version ing on our bucket.
00:07
We will walk through a version ing example.
00:14
In our last video,
00:16
we created our first s three bucket.
00:19
We uploaded an object to our bucket
00:22
and we made our object accessible from the Internet.
00:26
In this video we will enable version ing on our bucket.
00:30
Then we will upload new objects to our bucket to demonstrate version ing.
00:36
So
00:37
as a review,
00:39
what does very thing do for us?
00:41
Version ing enables us to maintain multiple versions of the same object within our s three bucket.
00:49
Essentially, a new version could be something as simple as an update to an existing file.
00:56
This concept is better explained by an example.
01:00
So let's walk through a demonstration of version ing.
01:04
So from the console, let's type s three to get back into our bucket and cyber very rocks.
01:11
Let's click on our bucket,
01:15
then click properties.
01:17
Then we choose version ing
01:19
and then enable version ing.
01:23
Finally, we click save
01:27
version. Ng is now enabled on our bucket.
01:30
Now let's upload a new object to our bucket.
01:36
I have already created a test file called version example dot text
01:44
When we click on the file, we can see its properties
01:49
Notice the file size is about 71 bites.
01:53
And here is the girl that is assigned.
02:00
If we click show,
02:01
this is where we can see the different versions of objects within our bucket.
02:07
Notice the version I D. That A. W s has provided for this file.
02:12
It shows us that this is the latest version.
02:16
Also, you can see that our original object has a version I d off. No,
02:23
this is because we uploaded this object to our bucket
02:27
prior to enabling version ing.
02:30
So
02:30
let's click back on our new object to make it public, so that can show you the file contents.
02:38
If you recall from our last lesson,
02:40
files uploaded to a bucket are private by default.
02:45
So here is our example File
02:49
is just a simple text document that says Greetings one and all.
02:53
Cyber Harry is one of the coolest sites ever.
02:58
Now let's say that we want to add an update to this file,
03:01
but keep the same file name.
03:04
Here's how version ING helps us.
03:07
First, let's update our test file,
03:15
been safe and uploaded.
03:23
So now we have two versions of the same file
03:27
A W s indicates to us which is the latest version
03:31
and has assigned a new version i d.
03:42
The latest version is the file that are Earl will point to.
03:52
But when we click the Earl notice that we get an XML air,
03:58
remember, we have to make our objects public.
04:05
A W s tells us that it was a success.
04:10
Now we click our object again
04:12
and we could see the updated version of our file.
04:15
So what if we wanted to get rid of the old versions of our file?
04:18
How would we accomplish that?
04:23
Simple.
04:25
We just click on the old version of the file
04:28
Goto actions
04:30
click Delete
04:32
A. W s warns us that this is a permanent action.
04:36
So we then
04:39
just click delete.
04:41
And now the old object is going.
04:45
This is actually a good use case for combining M f a with version ing
04:50
that way on Lee. Someone duly authorized would be able to delete objects from our buckets
04:59
for more information,
05:00
visit the AWS documentation
05:03
and perform a search for managing objects
05:06
in a version ing enabled bucket
05:11
learning check.
05:15
How does version ing assist us
05:17
version ING enables us to maintain multiple versions of the same object within Rs three bucket.
05:27
How do we enable bucket version ing
05:30
from the console? We click on our bucket,
05:32
then click properties and then select enable version.
05:39
Once I upload a new version of my file, will others be able to see it on the Internet?
05:46
No.
05:47
When we upload a new version of an object, we will need to click make public
05:53
to enable it to be visible on the Internet.
06:00
In this video,
06:02
we enabled version ing on our bucket,
06:06
and we walked through a version ing example.
Up Next