Hi and welcome back.
Now, in the earlier video we were discussing about the basics of the cloud transfer duties and also
the advantages that it provides.
So in today's video, we'll go ahead and implement the cloud print side, new ideas.
Now, before we go ahead and look into the overall structure, what we need, we need a throwback to
where some content would be hosted.
So let's go ahead and quickly create a stream bucket here.
I just call it Escapee Labs Haven or a haven bucket.
And will creating grief along with this.
Let's also go ahead and upload some sample file audio.
So currently I have a fake or less admin note.
So this is a single text file that we will be uploading to this S3 bucket.
So basically, if we look into the contents of this and not be defined, it does contain secret data.
So very simple.
The file is something that we IWD grid.
So once that we have this bucket created, what we'll be doing will be integrating it with the cloud
and we look into how we can generate same duties to access this specific fight.
So going back to the cloud console, let's go ahead and quickly create a new distribution.
Within the origin domain will be selecting our key pillars or a hyphen book.
It will also be enabling the origin access identity audio.
In case if you do not have an identity that is available, you can quickly create a new OIA.
It is very simple.
The process is very simple.
Once a new was created, you'll see it automatically gets filled up.
Along with that, make sure that you also click on Yes, update the bucket policy.
So this is the basic part.
Now comes the part associated with the same new ideas.
Now, if you look over here, that is one option, calls it a split viewer access.
What we need, we need to go ahead and click on.
Yes.
So basically what happens is if you go ahead and enable this option, any content that is part of the
bucket, you will not be able to access it directly.
You will need some kind of a signed userid or maybe a signed cookie for the contents to be accessible.
So when you go ahead and select, yes, there are two distinct authorization type for this.
One is the trusted keypad group and second one is their trusted sign.
So this basically means you will be able to generate the sign you are.
Well, it's not like any random I am use it can generate a sign.
You are a let's say that this bucket contains very sensitive information and this information should
only be made accessible through sign signed others.
So you have to make sure that the individual who is generating this and you are all that individual
is trusted and he has the relevant keys to generate that same you added.
So this is what we specified over here.
So when we selected trusted group will basically have to select the key group order.
So currently a key group is not really created.
So let's go ahead and quickly do that.
So internally in cloud offering, you basically have option related to public key and key group.
So we are basically interested in public keys first.
So what we need, we basically will have to create a public key.
So the sign you are, it will be signed using the private key associated with this specific public key.
So to generate the keys, what we'll be doing will be making is of a demo.
Easy to instantiate.
So basically this easy to insert if you'll see the port 22 is open yet.
So basically all the port said open.
So this is fine for a demo.
So let's go ahead and quickly connect to the instance we'll be using.
Easy to connect.
You can directly alter data set.
It does not really matter much.
Great.
So when to connect it to the easy to instance, what we need is we need to generate a public key as
well as the private key.
So currently I have some simple commands that can generate both the public and the private key, and
we are basically making use of open SSL to do that.
So let's go ahead and copy the first command.
I press control B to paste it similarly.
Let's copy the second one.
I will place control V to paste it.
So at the end audio, you should see that there are two fates.
One is the public underscore key, and second one is the private underscore key.
So we're interested in public underscore key.
Let me go ahead and copy this up.
So I'll copy this entire detail, press the control key, let me be situated and let us call it as the
more public key will go, it will create a public key.
And from this public key will go ahead and create a key group, Liz's call it as Demo E group.
And basically the intention of key group is we can go ahead and select multiple public keys warrior.
So since currently we only have one public key, this key group will select only one public key.
And in cloud four and distribution you basically will have to go ahead and anarchy group.
So once you have created the key group, if I quickly refresh order it, you'll see that we can select
the key group from your thing.
So I trust the group is currently added once.
Then you can go a big down.
And creative distribution.
So currently the state of distribution is deploying.
So we'll have to wait for a minute for the deploying stage to be completed.
However, till that time, let's go ahead and look into how we can create the cloud for insane delight.
And so to create a cloud run saying you are the command is very simple, you will have to make use of
CLIA.
So you have either blessed cloud French st followed by the U.S. and so this is the you are told that
you want to go ahead and sign.
You'll also have to specify the keep it in the private key and you'll have to also specify a date,
less date and optionally also a date greater than so in the time a distribution gets created, let's
verify it is still in the deploying state.
That is fine.
So till that time, let's go ahead and create a command.
So the command would be a ws cloud friend insane.
So LTE doubles can all track same.
The second one is the U.S. so let's specify the unit and the UI role will be that of cloud print distribution.
So this is the URL that we are interested in.
So let's see steps.
I'll copy the earlier followed by the exact but and what is the exact.
But it is and may not be exactly.
So we want to access this specific flight.
The second one is the key Berati.
So let's copy this up and keep it.
It is something that you can get from that cloud from consulate.
So basically if you open up the public key, this is the keep it ID.
So let's copy this up and we'll be easy to edit.
All right.
The next one is the private key.
So basically, since we want to sign up, private key is must.
So let's also specify the private key.
So before we go ahead and enter it, let's quickly verify the name of the find.
So the name of the file is Private Underscore Key, not BBM.
And you'll have to use the same name, but it is private and that's good, accurate beginning.
All right, so let's open up the command again.
That was one small table you will have to specify, will have to remove file B only.
So the B was added table and the last thing that we need is a date listed.
So let's copy this up and let's say 2023 zero forward zero for just for an example.
So if you look into the format that is expected, it, it is viva m m BD.
And again, one interesting and good thing is that the C also has the commands that you can easily add
a photo audio only.
So that is the only thing that is expected.
Now before we go ahead and run the command, let's quickly verify if our cloud print distribution is
ready.
And yes, currently it is enabled.
Now, before we go ahead and run it, let me quickly show you what happens if you try to access that
will not be directly without saying you it.
So I'll be the link followed by admin dot b and immediately you'll see you'll get an error stating that
missing key.
Basically it is requiring a missing keep it a query barometer or a cookie.
So basically assigned you are not assigned cookie something that is expected and this is what we are
basically generating through this command.
So let's go ahead and run this.
And as soon as you do that, you see you basically get an output.
So this and that output is the same you are.
And so now let's go ahead and paste the sign you are here.
And immediately after assigned you audit, you see you're able to get the contents of the admin dot
p60.
So again, you can play around with data less than date, greater than IP address to go ahead and generate
this and you are depending upon your use case.
So I hope with this you understood the basics of saying new audience.
So again, one last thing.
Since we have a cloud print distribution, a small reminder to go ahead and delete it.
After your practical advice, you will see a small, surprising $8 bill.
So with this will conclude today's video.