Everyone, and welcome back.
Now, in the earlier video we were discussing about the basics of fleet.
We looked into the importance of setting up the military capacity as well as the target capacity.
Now, in today's video, we'll go ahead and have the practical aspect of EU fleet so we understand each
and every step that is required to go ahead and configure one.
Now, for today's practical, I have a to microbeads DC to install that is running and will be using
this easy to intends to go ahead and create as well as that fleet.
So let me go ahead and quickly connect to this AC2 instance.
That's great.
So we are connected to the easy instance.
Let me just log in as right now the next thing that is needed is to go ahead and create a template.
So I already have a simple template that is available.
So within your direct set of easy two instances, each one with the same weighted capacity and our total
target capacity is one and the default target capacity type is here.
Now, one more thing that you'll note at the start of the template here, we specify the template and
this is important.
So this is basically the template idea associated with the launch template.
This is important primarily because the easy to fit needs to know what is the operating system that
needs to be created with, what is the security group and various other configuration.
So one of the first things that you will be doing as part of the easy to flip is to create a launch
template.
Now, within one of the reasons here, let me go ahead and quickly create a launch template here.
So we'll go to the launch template and we'll click on create launch template within Liz's Qualitest
fleet, the MPL.
And now you can go ahead and associate with these configurations like e-mail.
So let's select my idea of emergently next to the instance they fill out, primarily because this is
something that they fleet will decide based on our configuration.
You can also select to keep it in case.
If you want, you can select the VPC volumes as well as the tags, however, will keep it simple.
The only thing that will be configuring as part of the launch template is the Amazon Linux to EMI once.
Then you can go ahead and create the launch template.
So this is basically the template.
Let me go ahead and copy this up and let me replace it once.
Then let's copy this and let me create a new file.
Coalesce a one Dodgson and I'll post the contents here once.
Then you can go ahead and save the fight.
Now in order to go ahead and creatively, you can basically make use of a C like a manual.
Do note that in order to create a fleet, you do not really have a duty option.
So primarily you will have to make use of clay.
So the command is it is easy to create fleet followed by you'll have to specify the design file.
So if you go down, you're within the example.
They have given a great example.
So you have a WCC to create fleet followed by the name of the file.
So let's copy this up.
Let me based it followed by the filename in our cases, if one not just on.
All right.
So it's it's not directly.
Let's quickly verify the filename was a failure and Laugesen so let's quickly replace this and let me
press enter.
No immediately you basically get a message stating that you must specify a region.
So basically in order to do that a region must be specified because EU fleet is associated with the
region.
So what we'll be doing is let's run eatables configure command quickly.
And the next thing is the access secret code as well as the region selection.
Now within the app.
Let's go ahead and create a new user.
This, let's call it as fleet user will give it a programmatic access.
And just for simplicity, we'll also be giving a policy associated with easy to full access.
Right.
Let's go ahead and do a review will create a user.
Let's copy of the access query I posted here.
Let's copy the secret access key.
And within the region will give the region of the US east to this is where I launch template is based
on once.
Then let's go ahead and run the same command yet again.
Now at this stage you basically get an edit stating invalid fleet config when calling a create fleet
operation.
And it is also stating that the instance type C three 3.0 large with hostis.
So primarily depending upon the region as well as the availability, because this is one of the older
instance types, you what you can do is you can go ahead and modify the instance Dave.
So Lizzi will not do the C 3.0, but instead we use the neurodegeneration and fight for instance, once,
then let's try to run it once again.
And you see it works perfectly well.
So this has given you the fluidity and within the easy to let's go to the instances.
And currently, you see you have one instance type of C4 large that was selected and C4 or large was
one of the cheapest one among the others that were part of our weighted configuration.
Now, if you look into the lifecycle here, it is based on spot.
So it will quickly go to the spot request.
You see, you haven't requested it based on the see, for instance, that is currently in the status
of fulfilled.
Now, the next important thing we need to know is how you can go ahead and delete fleet.
So deletion of lead is also quite simple.
So it is easy to delete fleet followed by you'll have to specify the fleet idea warrior and then you.
I have to specify determinate instances.
So let's try it out now within this year.
Let me, Gordon, pace the first part and now you have to specify the fleet.
Let's copy the fleet idea.
And then what you need to do is you have to specify the terminating.
So let's try this out.
So now you see the current fleet status is deleted terminating.
So within this port request, if you refresh, the state is canceled.
And let's go to the instances and now you see are instances of sea.
Red light is terminated.
Great.
So I hope at a high level or we understood the basics of how we can create a fleet and also how you
can go ahead and delete it.
Now, depending upon your requirements, you can go ahead and combine the on demand target capacity
to spot target capacity and create configuration based on your use case so that this will conclude today's
video.