Instructor: Okay, so now let's do a little bit of setup
for EC2 and an Application Balancer
before we go ahead and play again with Route 53.
So what I'm going to do is go into the EC2 console
and I'm going to create three EC2 instances
around the world, with different public IPs.
So I am going to launch an instance
Now we should know the process by now.
So Amazon Linux 2 of t2 micro,
I will configure the instance detail.
And in here for the user data, I am going to enter,
the user data from here.
So what this is going to do,
is it is going to create a web server again
And its going to say Hello World from the hostname
And it's also going to get the availability zone as part of
as part of the webpage
because it's going to say Hello World from, EU West 1A
Which gives us some information around
where the instance is located.
So I'm going to paste this as text and then click on,
Add storage, Add Tags, Security groups
And I'm going to create a new security group with SSH and
HTTP on port 80, and then launch my instance.
And I can say that if this is fine,
proceed without a key pair, which is fine.
So we have done one of these in the Frankfurt region.
Now let's go into another region. For example,
let's go into US East 1.
And in there, I'm going to do the same process.
I'm going to launch an Amazon next to image.
Instance Details.
I'm going to have the same user data,
add storage, add tags,
security group. I will create a new one.
I will add the HTTP rule. We're good.
Then I will launch my instance and it will say proceed
without a key pair, launch my instance.
I'm going a little bit faster now,
but you should have the hang of it.
And then let's create one last instance. So for example,
in the Singapore regions, so in AP Southeast 1,
I'm going to create one last instance.
So Amazon next to, T2 micro again,
and then I will have my user data,
add storage, tags, security groups.
I will add HTTP review and launch, launch,
and then I will proceed without a key pair.
Okay. So we have three EC2 instance now.
what I'm going to do is that I'm going to just get the
public IP of each EC2 instance and write it down in my
notes. I can just identify them.
So in here, I'm going to have this IP for AP Southeast 2,
a one.
Then the other EC2 instance was in us east one.
So we're going to have a look for it. Here we go.
The instances here,
I'm going to get the public IPv4 and then paste it here.
And this is my us east 1 instance.
And then lastly, I had an instance EU central one.
Yes, it is here.
And I'm going to again, copy the IP.
So here we go.
My IP address in here as well as EU central 1.
So I have three EC2 instances,
and I'm going to do one last thing.
I'm going to actually create an application load balancer in
this region as well. And you will see why later,
but let's go ahead and create a load balancer.
So it will create an application load balancer.
I'll call it demo ALB route, routes 53
in three subnets.
And then for security settings,
I will create a new security group,
which will allow traffic on port 80, which is good.
And then we'll have a new tar group. So demo TG routes,
53 of instances, I will reserve my targets.
I will add this instance as my register targets,
review, create.
And then I will also gets this DNS name right here
in here, just so we can check.
Okay, So let's make sure that each of these instances
is set up correctly.
So if I take my instance from AP Southeast and I go to this
URL,
I get a hello world from this domain name in
AZ AP Southeast 1b.
So this is working, then if I do the same for EU east 1,
I'll get a good answer. So in AZ U S east 1,
so that's perfect. Then if we do the one for EU central 1,
let's make sure it works. Yes.
In EU central 1c. This is perfect.
And then my load balancer,
I don't think we'll be ready just yet.
It's not just ready or set,
but once the ALB will be ready,
then I'll be able to access this URL.
Okay. So my ALB should be ready.
And if I refresh this page, yes,
I get the correct Hello World. Okay.
So we're good to go.
My EC2 set up is complete and I will see you in the next
lectures to practice more of route 53.