# FCS 26 Sep

- **Course:** 5102 - Foundations of Comp Sys
- **Recorded:** 2026-09-26 00:00
- **Transcript:** 1841 segments, 14521 words
- **Made by:** deepdml/faster-whisper-large-v3-turbo-ct2

---
I have attended that assignment. So one thing I want to bring to your knowledge, in one question, you have given four options. Out of those four options, two options are exactly same. And the rest of the two are distinct. yeah so i and for the sake of it's not yet out so that's why i'm not really mentioning that what the question was but that was the case so and what are the question left in my opinion none of those are true basically okay so i have randomly what are the option what are the options are given, in my opinion, none of those are actually correct. So, randomly I have chosen something. So, I consider that either given... In that question, right? Okay. So, somebody says it is a hint question. Yes, Profullah. What do you mean by hint question? there should be 10 questions wherein you are expected to score so were there 11 questions in that assignment not sure give me a moment not an issue you can just put the question number

which okay so just give me the question number where you found two options seems to be the same I will get it checked and accordingly okay question number 5 Swaksham Kumar okay thank you very much one thing I guess the question number may be randomized so it may not be exactly same but you can check yourself for all the options oh is it okay at least can you give me the question Okay, I'll find it out Anyhow, thank you very much for Okay, digital hardware layer Two options Okay, got it Okay, understood Could be a mistake While I'm Creating the question By the moderator or somebody Actually, I have done that But I just created the questions And I posted it I am really not sure how it works internally the process but I will take care of that one question so if that is the case then we need to score you with nine questions only we will see so basically whether you give one mark or you don't consider that, to me it is one and the same

whatever you people consider then I will do it that way I understand which question it is in my opinion it's better to give the grace mark to everybody because people are spending spending time on that okay so if we just remove that that's from the student side that time is understood understood okay I'll take care of that no worries okay and second thing I just since we are speaking about it i just wanted to understand from you did you guys really felt it was worth an assignment with the quality of questions what was available in it was it a good quality questions or like no it's normal it's actually i have completed all the assignments for all the subjects and this is the only subject where i've seen the question is coming very practical so you have given the practical situation based on that it's in my opinion this is a very good question set okay but now the tough or easy that could be relative from person to person

but we have given some use cases and asked the question that is a very good approach okay so even for okay let me ask the question in a different way has anybody felt that okay these are all the easiest questions that's the way I wanted to put it across so I just wanted to check yes I had to use my intelligence or I need to understand the questions before answering was it that type of questions or is it like it was straight and then it was easy and we could make it. Two types, right? So, okay. Look, as I said before I always test my participants only on what I cover. It's not fair enough to test you outside of it but I try to cover the concepts from the TOC. That was the objective. Assignment is basically to concept recalling. That is the thing. The second one is basically will come up around next week. I hope all of you attend that. I didn't want any of you to miss it. So, as I say, she is not audible. They probably just check your speakers

If not, please rejoin, that would help you Yeah, that was the objective So, one thing I just want you guys to do before we start our session today Okay Another thing is, last week I could not make it I am really sorry for that Actually, I had to cancel all of my whole week classes after Wednesday. So I thought I would be able to join on Saturday, Sunday. No, I have not started the recording yet. I will do that tomorrow, definitely. So I thought I would be able to join at least on Saturday, but that also I couldn't join. So I'm sorry for that. But as before we start our session today, in all the three sessions what we have concluded, I want you to recall and identify five words that you feel important. You choose five words. That's all you need to choose. And I want all of you, I want all of you to paste it, paste it in the chat. I hope everyone has access to the chat. So you choose five words and put all the five words in a single response.

Don't, you know, put two or three, something like that. So let's take like a couple of minutes you take, no problem. I see Sanket, I see Siddhant responding, but you rethink, you rethink, and then try to, don't use, you know, the short forms. Please use full form. And let us see what is getting repeated. The objective is basically to see what is getting repeated the most. But you don't look at others' response. You think two minutes and you type yours. Five words, that's all I would say. I'm seeing responses. That's great. I'll be on mute. I should be back. I will be away from the mic for a couple of minutes. Once we're back, we'll take out from there. I am seeing already. Great. What I am very happy about is your thought process is in the right direction. When I say right direction, I am not meaning that your answers are correct, but your thought process is in the right direction. Before I speak ahead, I just wanted to confirm.

Is there any background noise you guys are hearing? Because a lot of noise around my house due to empathy. So that's the reason. Okay. Echo is basically your speaker issue. That is something that I'm not sure I will be able to help. is everyone experiencing echo okay fair enough so because to my understanding echo is from the speaker so if i have problem with my speaker then i will get echo that's my understanding coming back let me try to be a little louder so that hurts you let me see that's what I said a little uneasiness that's the reason last week also I got class cancelled I have not uploaded I will check that on Monday I will upload everything Okay great So now the point I just wanted to drive here is There are two things Okay One is segregation And another one is aggregation So the reason why I asked you to choose five words Basically, I want to see your thought process Whether it is applying this aggregation and segregation

I could see some of the answers, yes But most of the answers is either aggregation or segregation So now you can look at your answers, your own answers and you can see whether you have adapted segregation, you have adapted aggregation or you have adapted both. It is very important that you need to adapt the segregation first. In anything, no, I am not sharing any screen as of now. In anything, whatever you do, first you need to adapt the segregation. It is not only this subject, it is applicable to anything you do in your professional as well as personal life First you do the segregation Once you do the segregation, whatever output you have got Apply aggregation on it Then you see the output You will see the most appropriate output coming from you this is one thing I tell all my participants in all my trainings. First you apply segregation, then you apply aggregation on the output what you have received

when you applied segregation. And then look at the output when you applied the aggregation. You will be able to see a very clear picture. It will clear your thoughts. So that is one thing I just wanted to give you okay let me give an example so when i asked you to do five choose five words the first thing what you should have done is no i am not i'm not sharing any screen as of now okay if that is the case let me share my screen just give me a minute so what i am going to share now is my fresh sticky notes just for this example and if you are when you are able to see my sticky note please let me know just ping s when you are able to see the sticky notes you should be able to see so we are speaking about segregation first and then aggregation so in our context if I apply the segregation I will write something like this whatever comes to my mind CPU, memory storage motherboard instruction I will write like this and once I have

done this, this is basically I am trying to put everything and trying to segregate. So ISA will be another one group which will go along with instruction. CPU memory storage will be one group. so I am segregating it now if I have segregated something like this now I am going to apply aggregation over here so now if I am going to aggregate I will see how I can aggregate CPU, memory and storage so CPU, memory and storage is there a way that I can aggregate One way of aggregation is hardware and I can put CPU, memory and storage. Then I can put software wherein I can say instruction, ISA etc. Now virtual machine. So now is virtual machine a hardware or a sub-software? It is a combination of both. It is a software, but it provides a platform, that is hardware. So now where will it go? So it is, you can say, neither. So there you can put VM. Now, if you have anything else in your mind, you can just tell, I can give you an example.

So, suppose if you look at the output from the aggregation, it gives you a clarity of what you have got to know. This is the way you should, okay, sandbox. Sandbox is basically a virtual boundary. What is the physical boundary? physical boundary is the capacity of the hardware or it is if you say CPU there is a boundary to it that is its size but sandbox is a boundary but it does not have any size there is no size for the sandbox sandbox can take any number of hardware in it be it virtual physically it cannot take because sandbox itself is a virtual so where does it go it goes into the nadir so i can say vm sandbox and if you say rds cloud cloud is a nadir a software that is giving a hardware so that is nadir so this will always be there in whatever you learn whichever subject You apply this, you will be able to achieve clarity For that purpose, we had this exercise But anyhow, let me stop sharing Okay, the objective of today

Let me share again Let me share the same stepping notes Now let me delete everything Yeah, sandbox, it's a virtual machine, that's why it goes into the, but sandbox cannot be a virtual machine, only sandbox can contain virtual machine also, that is the difference we need to understand. So, now objective of today, we are going to deploy an application in cloud and the application is containerized and the application is going to have front-end, back-end and a database. So it's a three-tier application and it is containerized. It is going to be deployed in the cloud and the deployment is automatic. What I mean by automatic is I am not going to manually do anything. I will have a script which is going to perform that. So between, with this asset what we have in hand, between today and tomorrow tomorrow theory session also, we are going to consume for this purpose so that whatever we have covered in the last three sessions, we are doubly sure that we have

understood. Once we cross that, then we are going to see the next set of hardware as part of our course content. So, are we all on the same page? If you have any queries, please let me know now. I will be answering that before we proceed ahead. If someone has any queries, please let me know or if you are comfortable, give me a thumbs up if you have understood. So is my voice still jumbling around? Okay, great. So are we all on the same page? Yes? No? If you have any questions, please let me. Whatever I have typed here, we are going to use this today, tomorrow. and then we are going to understand what we have covered till now. Okay, so now Aryaman Singha Okay, Varun Okay, this I can help Okay, great Which asked me what was the question Okay, what are the types of load balances in Azure and difference between L4 and L8 in the Azure cloud okay for that okay great okay hope you got the answer fair enough okay great now what I am going to do is I am first going to share my desktop

that is my laptop. Once you are able to see my laptop, let me know. And then from there we will start. Actually, I had some issue in connecting using the Teams app. So I connected with the browser. So just bear with me, it would be a little slower than that. So let me go ahead and share my entire screen we will cover that Rajiv as part as we move ahead whatever is there we will cover no worries serial number is planned that way but as we proceed whatever is appropriate I will take that first and then don't worry I will get I will cover before number 30th everything is my screen visible can one of you confirm please is maybe chat I have not I'm not seeing the chat so that's the reason okay great so now if you first take a look at this I'm going to open my git bash so here I have let me clear my screen okay so this is my git bash it's basically a shell using the git and this is the content is basically from my desktop. So if you really

want to see the content in my desktop, so basically I have a directory called aws order tracing demo. Hope everyone is able to see my explorer. Now under this I have five directories, one readme file, one five directories, infra, backend, frontend, queries and trainer. Now what is there in infra? In infra I have JSON files, I have an environmental file, config.env and apart from that I do have policy templates and definitions. Along with that I also have something called deploy.sh. This is the shell script. It's basically going to deploy our entire application. So that's our infra directory. And the front end has index.html. And there is a Docker file which is available. And there is a configuration file nginx.conf. there is nginx.conf because I am using nginx for my web service. Then we have backend. In the backend I have a Python application source file. I also have a Docker file and there is a requirements.txt file.

That is my backend. And I do have queries. Basically these are all predefined queries. Don't worry, I'll be sharing the entire thing in the portal. So, you don't have to take a note of it, but try to understand how exactly this application is getting deployed. So, now using this, all my source and using the deploy.sh, we are going to deploy the application and then we are going to access. Once we are able to access, we are going to trace how the entire request is parsing through. That is the objective of today's session. So now I'm going to my PowerShell command prompt. In my command prompt, I'm in the same directory. Let me clear the screen. I'm in the same directory wherein downloads aws-order-tracing-demo, aws-order-tracing-demo, that's the directory. Within this directory, if I give, I have all the files. Now, if I go back to my shell, where am I? My present working directory is c colon uses sender downloads,

aws-order-tracing-demo, aws-order-tracing-demo, that's where I am. Now, if I give, there is a bash, that is born again shell. so unix commands will work so i'm just giving ls minus ls so we are confirmed now that we are accessing all these files folders from my desktop these are all our source files and source folders now info is the directory which has the definition for the infrastructure first let us go there a little faster please let me know I can slow down but you understanding this flow is very important because with that understanding only tomorrow when we are going to see today we will be tracing the request tomorrow we are going to see how the request has utilized the resources so it is going to be a continuation of today's session tomorrow now I am going into the infra and in the infra if I give there are sorry ls minus la. So now there are two executables. One is deploy.sh and the second one is destroy.sh

and the most important thing is the config.env file. Now what is there in config.env file. So when I am going to use this file, I am basically setting the environment here. I am telling export aws underscore region. Basically aws underscore region is a variable that is going to be available in my laptop until this laptop is running. So export is basically to create the variable and assign the value. What is the value? Basically, whatever AWS region is available. So, I am assigning it as ap-south-1. What is ap-south-1? It is basically Mumbai region in AWS. So, like that, I am assigning the variables in this environment file. And there is a front-end application repository. There is a backend application repository. So, I am assigning whatever is the name, aws order tracing demo hyphen frontend will become the repository for frontend. For backend, it is aws order hyphen tracing hyphen demo hyphen backend will be

the repository for backend. So, what is this repository? This is where exactly our code is going to be stored. So, from this repository only, we are going to use the image to run our application in the AWS cluster. Now, application name, cluster name and the table name. What is this table name? I am going to use DynamoDB as my database. So, what should be the name of the table? It should be app name hyphen orders. okay now like we have a repository for frontend and backend when this application is going to run then that application needs to log the activity for that we have frontend log group and backend log group basically this is the variable and the value is here so basically aws order tracing demo slash back-end will be the log group for back-end application then you also have front-end target group back-end target group same way you have I have hashed this so this is not going to be executed when we are going to source this environment file to my windows

basically it will go to this shell so whatever is hashed is not going to be executed and now I am leaving all these variables empty because it is going to get the information while it is running ok fair enough now where are we going to use all these things we are going to use this from our from our laptop. This is the shell which is running in my windows. I can look at this even from my command prompt or I could have also looked at these contents from this info directory. I could have right clicked I could have said open, open with probably I want it to open with notepad I could have opened it. You could have seen the same content but I want you to get utilized to the shell. I want you to get utilized to the shell so that because most of the cloud environment, the preferred operating system is Linux. So that's the reason I'm using this git bash though it is my laptop. Okay fine. Now, where will it get all these values?

For example, this is any app. It has been set hard all the well, but app name also is set. Where are we going to use all these things? We are going to use all these variables in our deploy.sh. wherein we are going to deploy our application into the aws environment since it is container we will be using ecs we are not using eks but we will be using ecs i chosen ecs because eks you will get opportunity to see in our cloud sessions but ecs is something that not be covered generally so that's the reason i have taken i have opted for ecs in this session now so there is said that the deploy.sh is what we are going to deploy yes now let us go ahead and see let me open it in nano i'll just say deploy.sh when i'm opening it nano i have a ability to move up and down for you to explain and that's the reason. So, the environment what we are going to use is bash, that's what we have set here. And the scripted directory, this script where it is, this is what it is going to. It is going to

get the directory name source of zero and a pwd hyphen w. pwd is nothing but present working directory. The account ID. Where is it going to get the account? Account ID of the AWS. So, I am going to run this command. Whatever this command is going to give as an output, as a text, that will be assigned to the account ID. And we will get to know what it is using. We will get to know because we do have echo commands. then we are going to discover the VPC in this account whichever account we are going to use we are going to discover the VPC further we are going to use the AWS client CLI command AWS EC2 describe VPC as filter name default so default whatever is the VPC will get outputted as text and it will be assigned to the VPC underscore id variable then subnets if it is there it will read it if it is not there it will create could not discover a default vpc with two default subnets and it will exit in case if it is not

able to create this is the message it is going to give and it will come out so first is we are going to discover the BPC. The second step is ECR. ECR is nothing but container repositories in AWS. So there we are going to get a repository created for our application in the same region where the application is going to run and we are going to use that repository under the account ID to store our docker images. So now we are trying to get the login password of this particular region. And then we are going to use the docker login username for the AWS and standard input, $ECRBs. So now we have created the repositories. Then we are going to build and push images. Where is it going to build? If you remember, we have seen Dockerfile in both frontend and backend. So, we are going to use those two Dockerfile to create our frontend container and backend container. So, two containers we are going to create and we are going to create two images from those.

And then we are going to push those images to the identified repository. So, that is step three. Step 4 is basically, we are getting into the lowest tier in the tree tier, which is that the database tier. Here we are going to use a DynamoDB table. And this DynamoDB table is going to hold our data. Okay, fair enough. so now if not create you can go through this script in detail because I will be sharing this script in a format of zip file in your portal so don't worry you can go through this in detail how are we building and what are we building and how are we pushing you can go through each and every line in detail and modify to your requirement also not a great deal So now, step four, DynamoDB table, we have created. Now, we want to capture the logs from the application once it has been deployed. So all the transactions we wanted to. So LG is nothing but the log group. So front-end log group, back-end log group, both we are creating.

And then we are going to assign the IAM role. and the trust policy. Once we assign, if you look at it, here we are using the AWS CLI command. For example, AWS IAM, get hyphen role, hyphen hyphen role hyphen name. What is the name of the role? Exic role. Where is it? It is just above. If you look at it, you have the app name, hyphen execution role. that's what it will take the value here and then assume role policy document we have a file called trust policy file. So whatever is available in this it is going to assume because we need access permission to create container service, run our container in it and then access the application. For that we need permission. What all permission is needed has been mentioned in this trust policy file. It will take the input from the trust policy file and then it is going to assume that role. It's the same thing that we are doing for both tasks, frontend and backend. And once we are done with the IAM

roles, you can see here task policy file is nothing but cat slash TMP backend task policy. This is for the backend. Same you will have the task policy which is for the frontend also. And where is it? This is we are creating temporarily by using the information on the JSON file backend task policy dot JSON which will get applied and written in this JSON file and that JSON file will be assigned as a task policy file which will be used in our attach role, get role and for both back end and print end. And after performing the IAM roles, we are going to create a ECS cluster. It's a container cluster. Containerization cluster. And am I telling how many has to be created? No. I'm defining some values in terms of the groups and other stuff. But I'm leaving it to the AWS to decide in terms of number of nodes and other things. And finally, security group for the front end and security group for the back end. Then we are going to reset or add simple demo ingress.

Duplicate rule errors are ignored. So we are authorizing the security group for incoming traffic. Ingress means incoming traffic and we are doing it for front end as well as back end. And we also have application load balancer. Balancer also will have the same security group. So the policy is uniform across ALB, frontend and backend. And after that we are going to create a load balancer, application load balancer. And once the load balancer is created, if you look at all the values, most of them are variables. Most of the variables are defined in our environment file or it will drive while processing the deploy.sh file. Finally, the target groups. We will create the target group and we will put the systems in it. When I say V, it's not V, it's actually the AWS. Now, finally, we are going to create an API interface wherein which is going to confirm whatever request can enter and nothing is allowed. That is what we are

defining here. And then we are deploying the applications. That is what nothing but create or update services. All are local existing and finally if not existing then create the cluster service. If it is already existing, ignore it and move forward. Create or update the service and waiting for the ECS services to stabilize. So now it has used the images to create the containers. Now it is waiting for the cluster to come up. Once the cluster comes up, we will get the URL to access the application. So this is what is this entire shell script is all about. And this is just a sample file. It includes all three tiers of application deployment. So it should serve as a good example for you. And if you wish, you can use this as a base and expand more. Or you can even recreate a fresh one. It's your choice. So now I have this deployment dot, sorry, deploy dot sh. In deploy dot sh, we also saw some policy related and task related. So I have front end task definition

dot json. I also have iam task trust policy dot json. so this is the template and this is the actual value when deployed okay fair enough now let us see I can give AWS is a CLI command I can ask what version do you have so it has 2.26 pattern 3.13 windows version 11 and it's an AMD 64 okay perfectly fine now do i have docker running yes i can also check that i can say docker version so it says that yes docker is running and it has a version 29.7.2 but where is this docker running, Sundar. I am using docker desktop. So, if you can look at here, I am using a docker desktop. I have started the docker desktop and I have just left it running in the background. So, I am able to run the docker command in my bash. So, my AWS is configured, docker is configured and we also have the application package okay and we can see again just for our refresh where am i in info my package is not in info it is in frontend and backend

so now first let us look at the frontend CD frontend in this frontend I have three files one is docker file another one is index.html and the third one is a configuration file let us look at docker file so here my docker file says that from ngimx colon 1.27-alpine so basically from this image copy ngimx.conf into the and overwrite different .conf copy index.html from the current directory to the index.html under usr share nginx and html. So, this is what I have in the docker file. So, if I am going to create an image using this docker file, then that will help me to do all these three activities. And further, it will exposure the application at port number 80. It is a web service. So, we are exposing the port number 80. So, the application is going to be available at port number 80 in that particular container. So, if you are running more than one front-end container, then definitely yes. All of them will open up the port number 80 and the application will be running inside the container.

And inside the container, once it is created, index.html also will get updated. it will replace the default HTML5 and it will expose the code number 8. This is for the front end. But for the back end, what is that with the term? Let me say back end, Docker 5. You can see, I am starting with Python. My back end application is a Python application. And I am setting the environment for that application to run and I am also giving steps for creating that image. Once the image is created, you can use that image and run the container in your ECS environment. so here I am also having app.py so index.html we know what it is we have seen all other files except for requirements.txt and app.py so where are these files available it is what we are looking at is at the back end So, let us see if it is having these two files in the backend directory. So, let us ask backend. Let me say requirements.txt, it is there. So, basically, it brings in the flask,

Givni Khan and Boto, that specific question, part of the image. That's why we have put requirements.txt. See, this is very much required for the container to run successfully. Now, requirements on what is there in app.py. Let us see what is there, backend, app.py. Oops, it's running. So, instead of cat, let me see more. Oops, it's not there. Okay. Let me use nano. so here if you look at this is my python file so I am importing login because we are going to log operating system we are going to use operating system commands time and UID so we are also going to use go to 3 so this is the entire process first thing it is going to check if your application is running asking you to check in slash health and if it is healthy then return that it is healthy then API orders basically the orders that we are going to post into the application of what we want is handled by this slash API slash orders then I also have options that in case of

normal failure and slow and this is the actual application now this is get order information whatever has been inserted and confirmed will be displayed on the screen with this get command and it is also going to give a detailed logging information in case if it is a warning or if there is an error or if there is something critical and that is going to display here in this part of the code and finally it is going to say that the application is running in this code post and in this code number so if this deploy.sh the sales script if it is going to be successful then we can expect the URL in which we can access it. Okay, great. So let us come out of this script we have understood. Now can we go ahead and execute this script? Yes, we can. But before that, I just wanted you to confirm that what is that we are So, I can ask AWS to give me the information about the account that we are going to use for this particular deployment.

So, AWS, STS, get caller ID, caller identity. So the user ID is this, account is this and we are going to use the result root to deploy this application. We know where exactly the application is and how it is going to run as well. Now, let us also check what is the default region which is set for my environment. i can ask aws to actually configure do you want to configure and set anything no i want to get the configuration that is already set for region so ep-south-brown so this region name and the region name what i am using in my deploy.sh both are matching if these two are not matching then I will not get permissions and even if it is not matching well and good but only thing we need to know where we have to give the region information so that the application is appropriate other than that there is no much significance of what region by default this system have access to still you will be able to assign access to, to whichever

system we are logging in. So now the AWS environment also we are clear. We are going to use AWS south one to create our container service. Our DynamoDB is going to run in that region and our backend application also is going to run in the same region. So all the three tiers will be running in the same region because the access what I have provided for the application is matching which the environment for which we have access to. Since these two are matching, we will not have any challenges as such. So now it's time for us to go ahead and deploy. So how am I going to deploy? Let me clear the screen. Where am I? I am in AWS order. Now I can run the script. Basically first I need to source the environment. Where it is available? It is available in config dot environment source is a unix command in case if you are not aware it's just going to source the information from this file and set the environment for my shell because i have logged in and got a shell only for this shell it will be applicable not

all the shells so yes it is applied the response is very fast that means it is applied and awaiting for the next steps. That's what it means. Now, I have sourced it. Now it's time I have set my environment in this particular shell. The shell, where is it running? Keep in mind, this shell is running in my laptop. From here, we are going to connect to the AWS. We are going to deploy our application. We are going to create our database. and then we are going to create a load balancer and assign an external IP to the load balancer and the same will be accessed from the outside. We should be able to see how it is traveling until the database and the response, how it comes back to the end user as well. So to know that, first we need to deploy the application. So what I'm going to do is, I'm just going to run my deploy.sh. Let me take a minute or two. Let us actually wait for it. How am I going to do that? I'm just going to run the deployment.

so i'll just say bash that's my environment even if i don't give bash it is going to use the bash because my default selfish bash and it's always a good practice to provide so using bash execute the file that is available under the directory infra from the current directory and the script name is deploy.sh so now first what it is going to do let me give enter, so first thing what it is going to do is it has identified the account in which it is going to deploy it has also identified the region in which it is going to deploy, it has also identified the VPC in that account and subnets which two subnets it is going to use and now it is proceeding. What it is proceeding with? First it is using the front-end Docker file and then it is creating the image. Where is it creating from? It is creating from the front-end directory from the file Docker file and it has created the image. It says that view build details is

available in my desktop dashboard build desktop linux desktop linux and this particular image id we have the repository sorry the image front end similarly it is trying to create for the back end somewhere you see layer already exists that means it is there is an image available but still it checked the layers one more layer was missing and it has pushed that layer also into the same back-end image. Now it has pushed it to the repository. Now from the repository, how do I know? After building the images it has pushed to the referred repository. This is what the repository is, my account, docker.ecr if you have in Southland, that's the region amazonaws.com and my name of the application with the demo backend. So it has pushed this into this repository successfully. Now it is actually trying to create the layers. It is trying to create the cluster. Once the cluster is available, it is going to push the pull the images and run the application in that cluster.

So it is waiting for the ECS service to stabilize. That means it is in the process of creation. And it is waiting for it to stabilize so that it can deploy the container and give us the URL. So it may take another minute or two. So let us wait. Because everything is happening using the AWS CLI command. all related to the cloud, we have used the CLI command format to create in this particular account. So, in the meantime, we can also go ahead and see. In my... So, let me bring up the console, AWS console, while it is waiting for it to happen. Now, this is my AWS console. I have not touched the console at all for any of the resource creation or application deployment, but I'm going to use the console to understand if things are being taken care of. So now let us check the VPC. That's the first thing I checked. So what is my default VPC? How many VPCs are running in Mumbai, one VPC is running and that ends with one, two, three.

And if I get into the VPC ID, I'm able to see that there are three subnets. But our script we have told it to identify only a VPC that has two subnets. So definitely it will choose this. I don't have any other VPC running. So it will choose this because it has three subnets. So, Sundar, what if it had only one subnet? Then it will not choose. If you remember, to communicate that only we had the error message in our script. Saying that, I am not able to find a VPC with two or more subnets. And it also has a routing table. So, now let us go back and see what is happening here. Now, it has waited for the ECS service to stabilize. Okay, great. Now, let us now go to the ECS. So, ECS is accessed before I used it for the previous demonstration. So, now ECS, I am opening it up. So, now you can see that there is a cluster created by name AWS. order-tracing demo cluster. There are two services running, two tasks. Zero container instances.

As of now, nothing is, no request is there. So, no containers. CloudWatch is monitoring. And capacity provider strategy. I have not given any default capacity. I left it to the AWS intelligence to run my containers. containers. Now if I get inside this cluster, what will I be able to see? I am able to see two things. One is front-end service and another one is back-end service. So what is this? This is basically service name. So that means even though we have only one container, there is a service name for that container has been created. This means that we can run as many containers as we want under this service name. It will get redirected to multiple Docker files, sorry, multiple Dockers and Dockers will successfully process the request and provide a feedback back to the request. So, we have two different services inside this and actually we have used the express mode in the aws cli environment so that's why we have

this okay now we say there are no ec2 instances are running yes only cluster is running no other instances are running so we confirm that let us we let us go to the ec2 instances So now there are no instances running. I am still in Mumbai region. There are no instances running but my application is deployed and application is live and application is accessible. How can I confirm that my application is accessible? I can go to the application load balancer. The application load balancer what we have received post deployment is available here so that means my application is available in this url of the application load balancer okay great so now let us open a new window but my new window is visible to you guys now let me go ahead and paste So, I'm just going to paste, not paste and go. Paste and go will actually execute the URL. So, now you just look at it. Amazon AWS dot com. ELB. So, load balancer. Elastic load balancer.

It's available in region AP South 1. And this is my application name. And this is my application load balancer. and this is the ID of the load balancer. This is how the URLs get constructed in the cloud. So now basically our AWS order tracing demo is running under this ALP and this ALP will be able to access the containers that are running in this region. As of now, how many containers are running? There are two. One is for frontend and another one is for backend. Okay, fair enough. Now let me go back to AWS home page again. And we have seen the ECS. And let us look at the DynamoDB. Because DynamoDB is our database. So now let us look at this database. Let us look at this table. How many tables I have? I have only one table. This is the table which got created as part of the deployment. so aws order tracing demo orders is the table I can get into this table and now in this table I have all the configurations related to this table

but how do I see the content of this table I can ask it to explore the table items with this option whether you want to scan or query scan means the whole table Query means very specific query you wanted to run and find out whatever data we have in a specific table, yes or no. Okay, great. Let me go ahead and scan. And then ask it to run the scan. If you look at it, there is one already it has. So let me rerun it. Yes, it is rerun. It is giving me the same. now I can get into this order ID and I can see what is the values so partition key is order ID customer product quantity and status conformed now let me go back to explore items I can run how many hour times that's what is going it says quantity is to status is confirmed product is basically EKS training so now let me click on this you'll be able to see what is available under this now will I be able to see this in the web browser through the front-end application yes we have copied the url in which

the application is available now you can see it's and not secret because i'm running http and not http yes it's an open url but anyhow i'll be removing all the resources from the aws then knowing this or not knowing this is not going to make any difference. So now the homepage has come, AWS Order Fulfillment Sundar AWS EKS Training 2 It is waiting for an order If you place an order, then the order details will come in this small window. Now let me say customer is not Sundar, but the customer is SHIM. They have not asked for EKS training. They have asked for GCP GKE training. Now, how many people are going to attend? Let us say 20. Now, let me place the order. It's a simple application. The moment I place the order you can see HTTP status is 201 one. Duration it has taken is 5 milliseconds, not more than that. It has created the order ID. And there is a request ID also. The request ID that is requested to create

this order and hence we get the order ID. And based on the order ID, we will track the transactions from that order ID. okay so as you can see that there is a request id for this creation is something like muijifdf there is a name it has given there is a prefix of equalizer that is eq so now how do i see this order where this order should be visible just keep an eye on this the reference number or the reference ID. I will go back. I will also look at DynamoDB. I will go back to the dashboard under tables. Sorry, tables, under tables. I can also explore the table items like before. I am just going to ask it to scan all, but let us see. There is only one as of now, so let me rerun it. Now you can see that the order has come. One is AWS, the default. Second is Sunder. The third is Shand. Basically customer name. I am just giving something so that we can identify it. Product is GCP, GKE training, 20 quantity. Earlier we added 2, now it is 20 and the status is confirmed.

So now how this is traced, that is what is the main question. So let us copy the request ID first here. It's basically REQ. It's not just key. It is REQ. Let me keep this in the memory. Now let us now trace the request. So now let me go back to my console and where we can get the logs for this. Basically a service called monitoring. Under that, we have CloudWatch. So, okay. So let me use CloudWatch. So yes, it is there. I can monitor resources and applications. It's a feature in AWS. Now I'm accessing CloudWatch because I have configured my application to be monitored by CloudWatch for its logs. Before we go ahead and look at the log analytics and understand the sequence of events that has happened, from the time I had given a request on this browser until the time I get a response, that is what we are going to see next. Because I got this response, it confirmed that my request has been created in the database. We also saw in the

database but how the response is going to go through. Now I'm in the cloud watch, I'm in the log analytics but before going ahead with this I just wanted to check if there are any queries, questions. Let me first go ahead and stop sharing so that you can also see if there are any queries in the chat or anything in the q&a uh if you wanted to ask something you can also raise your hand yes suraj i'm allowing you please let me know uh hello sir uh if someone has this folder that you shared on your git or local folder so what uh what uh what service he has to avail from the aws In the last lab, we have set up the EC2 instance in tier 2 micro. So how we connect the same instance. And if we don't have an AWS account, we just simply got your folder in our local system through our zip file and extract it. So it will work with it and what will be the pay requisite we need to set up on AWS first. You need to have an account.

That is the pay requisite. And that account should have the billability information. For the resources that I am using, AWS should be in a position to charge me. Only these two are the three requisites. And sir, can you show us the file where it will connect to our local, to the AWS file? Because all the code is in our local system and it is connected to the AWS. I showed them the credentials. Okay, let me share my screen quickly. I'll show you that. Let me share my entire screen. So now, I go back here into my shell, which I have used to deploy. So now let me open the deploy.sh Where is it available? It is available in, sorry, it is available in info directory and I am opening here. So now, it needs to know which account to use, what should be the authentication information and how to connect. This is what you wanted to understand, am I right? sorry yes I'm looking for the same file yeah yeah so here if you look at it

this script directory and if you okay not here I opened the wrong file I need to show you the environment file so now what is the environment, config.environment. So here if you look at it, AWS region, I am setting it APSouth, and admin, and the cluster which I am going to create, everything. But where will it get all this information from? I can ask the client in my system. I have installed AWS CLI in my system. I can ask how do I confirm that AWS CLI is installed AWS-F1 version that confirms that the CLI is installed in my system. And now here I can go ahead and type okay, it has gone beyond. Okay, so basically this is the command I'm going to type. Because in this client I have set my user account the identity that I am going to use, the authentication information is all set in my desktop itself. When the AWS client is going to run an AWS command, then it is going to use all this information that I have set it in the AWS client software.

So let me go ahead and paste this. Now if you look at the outcome that it is showing, basically this is the user id nothing but my account id and this is my account and the user name that i'm going to use is root it will not show the credential of what it is going to use but this client has already been set with this information the moment i go ahead and use the deploy.sh. Here, if you look at it, a co-aws account is basically account ID. Where is this account ID is going to come? This account ID is going if you look at the config.environment file, I would have given that aws.sts command and I have taken the ID from there. Region, I have set in the environment. Now whenever it is going to run any AWS command, for example, if you look at it, it is running this AWS EC2 command. At that point of time, it is going to use this account. And within this account, it is going to see which subnets are available, under which VPC ID.

so inside this deployment ship deployment shell script I have all the AWS client commands running but setting it is going to get it from the AWS CLI environment that we have seen giving the AWS STS command did I answer your query or did I confuse you more yes yes yes I got it understandable thank you okay okay fine fair enough anything else from anyone before we move ahead let me stop sharing what is that okay I stopped sharing so now I do see Varun Agarwal so I am opening your mic so please let me hi sir good evening I have three questions first is about that ARN when you did AWS STS it shows your username, it shows your account something and then it shows an ARN and it says ARN colon AWS IAM some something, some number and then root can you explain a little bit about that and is it related to some type of a privilege mapping or something like that no not really just one minute, someone has asked me to increase the font so that it is visible, I have just increased the font size

hope it is visible, okay, so now I have given this command, okay, where is this command getting executed, it is the CLI command, like your copy command or move command which is for the shell this AWS command is also part of the shell now because I have installed AWS client. So AWS command is available to me. But if I am going to install any client for example if you are installing an Outlook client you are supposed to give the properties that to which exchange server it is supposed to connect. What should be the credentials that it should use so that it can connect with the exchange server and get your mails or send your mails or etc etc. Similarly, when you are going to configure your AWS client, you are supposed to give this information along with the identity. Now I will show you. Your screen has not changed. Your screen is not shared yet. Sorry, sir. I interrupted you. No problem. Let me share the screen first.

there is something very basic for what we are going to see tomorrow so please ask questions, don't think that it is very basic can I ask or I cannot ask, that's not going to help you ok now AWS has a subcomment called configure which will help us to configure the client and I'm not going to give any parameters I'm going to get the enter Now, AWS Access Key ID. It is already configured. It is not showing. It is showing only the last four characters of the key ID. If I want to modify, I can modify this. I'm just giving enter because nothing gets. Now, secret access key also is configured as part of this client. It is available. It is not showing. The default region, I have set it to ap-south-one, you can set it to vs-instral, you can set it to ap-east-to, whatever region, I have set it to ap-south-one which is Mumbai. So if you are not going to give any region related information as part of your AWS command in your script, then by default it will take the Mumbai region to deploy your resources. For that purpose, this parameter is used.

and the last one is what is the default output format whether you want to use JSON or whether you want to use AML whichever format you wanted to use you can set it so this is the setting of my AWS client if you are setting the AWS client of yours then you will set the account access key ID, secret ID default region etc. So then now it is set. And now if I'm going to use the AWS command, it is going to use this authentication information to log into my AWS account. So for example, if I would just leave my laptop like this without locking, and the screen is available, and this prompt is also available, and you just drop by my desk, and you execute a command, AWS command, When you say create thousand virtual machines, it will create thousand virtual machines because authentication is available in the client. So that is the reason from the security perspective, if you have configured your AWS client in your laptop,

like any other security practices, you are supposed to lock and go. Otherwise, somebody can come use the AWS command and create thousand virtual machines. then I have to pay for the 1000 and I will not know about it. And when I come to know, I can only stop or delete. But for whatever period it is running, I have to pay. I can't tell Amazon that, you know. I was not knowing that someone else has created. So that is something that you need to take care of if the AWS is configured in your desktop or laptop. I can also disable this temporarily, but normally people won't do, they'll just secure their laptop and then leave it. Because configuring and reconfiguring again and again, it's going to be okay. Yes, please, go ahead. Hope I answered your query. No, no, I got it clear, sir. Only one thing, in this then, what is the significance of root? I understood it uses your access key it uses your secret but what does the root means here

then what is it like a there is no route here no there is a region no root root sir in the ARN command you passed one more parameter root is the user name right root I am using the root user but you logged in as your user correct so your account or it's a different That is my laptop. That is okay. I have my account ID. Account will have a default user. And that default user is the root which is created by the AWS. If it is Azure, you will have a default user called Azure user. Okay. Clear. So you have a root account also in your account. I'm using root because I don't want to face any IAM permission issue in the demonstration, but generally nobody will use it. You got it, I got it. My second question is on the config.env, because we will have multiple environments, correct? Dev test acceptance. So for each environment, I will create a separate config.env file. Okay, if you're having multiple environments, you can create multiple environment files

for each environment or in the same environment file you can differentiate with like how you are configuring MySQL, Daemon, like that you can also use the square bracket development have all the development configuration then in square bracket testing all the testing configurations and when you are using it the script you can refer to that That way also you can do. Either way, you can do whichever you are comfortable with. Okay. And the last question in here... Before executing the command, you are supposed to source your environment file. When you source the environment file, then whatever is there in that environment only will be available. For example, let me echo this dollar aws-region, ap-south-one. But suppose if I change the configuration file, if I make us-east-one as my region, and if I source that environment file, this variable will have the value of us-east-one. so environment file is important for the environment variables

yeah go ahead please clear sir thanks that is also clear and my third question is on when you were running that deployer.sh file I saw that it was trying to create and pull some images based on the docker.yml that you have created generally you need some type of a container registry correct where you put this images or or how it worked in your laptop. Did your laptop work as a repository? No. Repository is basically the AWS. Okay. So, let me show you that. Just give me a minute. Basically, the ECR. It is used the ECR. If I go to the services, it is search for the ECR. I have used this container registry and if you look at it, I have two images in the container ECR itself. I am using these two images to create the container in ECS. So, I have created the image using the docker file in my local desktop and then I pushed that image to the private repository in ECR. That is also within AWS Soundlink. Correct. Thanks, sir. And this registry need to be in the same location where the...

I have created a... No, not location. I think you are referring to region. Region. Region. It can be anywhere. It can be anywhere. You can, if you have access to, then you can find the image. So there is no foundation of keeping the registry in the same location where EKS service, container service runs, correct? Or there is a foundation? No, it is not mandatory that you need to keep the images in the same region. But generally, the best practice is we will keep all these images in multiple regions. As, you know, for availability, high availability and disaster recovery, we will not keep it in one region. We will keep it, for example, one in Mumbai and another copy in US East, so that if Mumbai is not available for some region, at least the image will get served from US East. So best practices, we always keep it in multiple regions. One more question sir that came just now in my mind. In the Nginx that you use here is an Nginx which is also working as a load balancer and an application server.

No, Nginx is not acting as a load balancer. Actually I have used the load balancer from the AWS itself, application load balancer. Okay, thank you, sir. Thank you. Okay, fair enough. Okay, so just give me another five minutes. I will take all of your questions. You do see three of you have raised your hand. Please do not lower your hand. Let me just complete this and then we will come back to it. Hope my screen is visible. do you know if you confirm the elastic container one okay so now i'm going to go back to my home page now i'll go to the cloud watch cloud watch is where i have configured to capture the logs now in this cloud watch we do have logs under logs we have log management log anomalies and and log analytics. Earlier, we used to have something called log insights, wherein we will be able to see the log, but now this is a new service which has combined the log insights, like trial and contributor insights,

all the three in one. We can write a query. If you don't know what query to write, you can ask the AI to write your query. You can take the assistance of the AI. But what I'm going to do is, I'm just going to search the log in the back-end. That has happened in the last 30 minutes. And what is the query I want to run? This is the default query, which it shows. I'm just going to give the actual request that has been created in the link. So the request ID is available here. So I'm just going to copy this. and I'm going to search for this in the CloudWatch. So let me replace this with this. So I'm searching in the backend, selected scope, all log groups. Okay, let me select backend. Selected scope is 1. And then last 30 minutes, this is the query I just wanted to, and I'm running. Let us say yes, around 3.24 p.m. there were 5 matches and let me run it again, let me give a star and then search again, so now you can see something at 3.24, you can see it at 3.40.

let me make it last 5 minutes. In the last 5 minutes, we should not be seeing anything. So basically, in the last 30 minutes, we have two records because we created two records. One is at 324 and another one is at 340. Now, what is that exactly happened is the sequence which is available here. So basically, it has received the request method is post And the URL it has used is API orders, which is nothing but this. Now from here, the order is created with an order ID, which is front-end application. And then it is validated for the customer AWS and product AWS and case training quantity one. So this is basically from the backend. and once that is completed, it has gone into the database and the request is completed with status 201. 201 is nothing but success status and the total duration it has taken from the time we posted the request until it got updated into the database is 25 milliseconds and database write success. Order ID is the same

order id. Duration is 2531. Now, this, it has responded back. Now at 324, there was another request. At 340, there was another request. Now, this is the last request that we have released. Now, we are able to see the logs for all the three requests that is available in the database. Where did we see this? All the 3D records. We can go ahead and look at the database. DynamoDB is what we are using. Let us look at the table. We can directly look at explore items as well, but let us go step faster. This is the one which is active. I am going to say yes. Explore tables, you can see there are 4, quantity 20 is the one which we, but this is the old one which is not available in the logs, but we can get this also. How can we get? I can go ahead and I can go back to my cloud watch and if I ask for the whole day then it will give. So now let me say log analytics and let me say last 12 hours and I'm not going to give any query.

Look in the back end, I'm just looking back end because back end to database will be able to trace. Now you can see everything, anything and everything. You can see the request each and every step. First is your Python, URL library, health checker. Health checker happens every five seconds. Because if the URL is not running, it is going to restart the container. So, like this if you get, you will be able to see somewhere down the line, there is a request which is around 340 we have given, that is AWS order tracking demo. This is the URL which has taken the post request, which has come from 172.31.1.13. So, here if you look at the health button, everything is also from there. Now, order ID between 340, otherwise also there are something which is going and that's why we actually write a query, which is going to fit only what we want. So, let us do that again. Okay, let me not do this. Let me remove this.

Let me flick on this. let me paste this and remove the request and let me put this star okay, now let me know now this will filter, you can see 1, 2, 3, I'm not sure why maybe it is even older than 12 hours so if I don't select 12 hours last, let me go last 6 days, let me run still, it is moving, okay, here 10 matches, this, okay, I can do still 12 hours only, so that you don't have a confusion, this is one transaction with 340 here at, there are 2 transactions between 320 and 325. That's why you are able to see 10 matches. And this is the one which happened around 2-3 hours before, which is 5 matches that means 1 request of data. So 1 plus 2 is 3, plus 1 is 4. And that is what exactly we were seeing in the database. So if I go ahead and if I explore the items, explore the items, four items. So RCUs consumed as two for that IOTP. Okay, cool. So four items, four log tracing. Now we have understood when we are deploying the application,

how the request is accepted, how it is going through. If you are looking at your CloudWatch, patiently with all the entries. It will give you from the time the post that means confirmation is clicked by the user until the response back to the user, you will be able to read all the logs in the virtual version. I have selected only backend. If you select backend, frontend, and database, then you should be able to see right from URL to database. So this is what I just wanted to demonstrate today so that we will continue from here on to see how the resources are being utilized. That's our objective for tomorrow. Now, let me take up the question that I have enabled you. Sir, what do you mean, sir, thanks for the available let's say some of it. My question is related to containerization. suppose currently we have see the contentization in AWS and now I want to move from AWS to Azure so we can use the same I mean file or

the script in Azure also and it will run successfully if I am not wrong sir 101% instead of AWS client hope my screen is visible is my screen visible? yes no So I'm using AWS Client here. Instead of that, if I have Azure Client, I don't have, if you install the Azure Client, and then configure your Azure Client with your Azure account and change your AWS commands from the deployment shell script to Azure commands, it will work. but you need to make this changes and put your effort to do that it will still work Azure will give you a load balancer you will get the URL you can access it and everything will work instead of DynamoDB there you will be using your any other LAM database ok thanks sir can we see the all the resources file deployed at that container folder Where it is, can you repeat one second if time permits it? So, what do you want to see, basically? The container, container file. You want to see the container, where it is running.

Okay. That would be running in the ECS, because I'm using ECS. I'm not using EKS. So, it's an ECS cluster. Now, if I go here, I have this cluster. and this cluster is having two containers here. You can see backend service and frontend service. There are two services that are running. If you go ahead and see the tasks, you will be able to see all the tasks. Now there are two tasks are running. Earlier two tasks are stopped. It is healthy, but it is stopped. Status is not known, but it stopped but these two are running which is the infrastructure if you click you will be able to know the container instances but now there are no container instances running the moment the request comes in because now two requests three requests we get so the container would have been stopped the moment the request comes easiest will start the container so pay as you go pay as you use is getting implemented here. If the request is going to continuously come on you will see

the container instances running here. You want to see any metrics about the container service you can see here. As I know there is no data available once. Are there any scheduled tasks? I don't have any scheduled tasks. If I put any scheduled tasks then that also will create container event history will give you all the events that has happened so last status is stopped since 24 hours so i have stopped it the other two the other two is running but it will create the container only if there is a traffic hope i answered your query yes sir and And that's the following question, the same can also work for the window server or we will do something else like we will, web server is a window web server, so it is workable. No, the moment you say I am going to use a windows web server, that means you are not using a driver, am I right? Okay, so suppose any other development Yeah, you can. Instead of NGINX, suppose if your

front-end service is a JavaScript or if it is just an HTML, CSS, JavaScript combination or if it is an ESP file or if it is an Internet Information Server, which is the web services from Windows. If there your container, whatever it contains, the container is going to run it. So it makes no difference for the user, no? Or even for the request. Because it is containerized. If it is not containerized, then you will have an EC2 instance running Windows operating system and you will be running Internet information server there. And that will be part of your load balancer. So finally, the containerization helps us to run the same executive file in AWS, Azure, Windows, Linux, whatever the OS, it will support to run or execute. Okay, fine. I'm not sure what is that hiding the bar. Okay, I'm not sure. Is this what I'm trying to? to monitor. Okay, fine. Yes, that's right with that. You are right. So, I am disabling you. I am taking the question from

Prashant. I am allowing your mic. Prashant, Prashant, if you are there, hopefully he is not around. Satya, I am allowing your mic. Hi, sir. Good evening. Thank you for the session. So, I have two queries. Please pardon me for what I am asking this for. in the ECS like you have mentioned it's not like kubernetes kind of oriented right like with the portal or am I wrong the kubernetes service kubernetes service is EKS in Amazon okay so the same thing you can also deploy in EKS okay okay sir got it I have one more query if you don't mind can I ask you yeah go ahead please in the deploy.assets file you have mentioned so there like I have understood that we have taking the necessary configs from the config file like AWS config will configure the ID secrets and all but there we are also taking the VPC ID and subnets so like are we just like reading them for echoing purpose or are we utilizing the VPC ADN? We are utilizing that VPC. We are utilizing that VPC. In that

VPC only our application is getting installed. And we have chosen to serve networks to deploy our front end and back end. Not just for purpose. We are installing our application in that VPC. Okay, When I checked that SSH file, I got little confused where we were using it. No, no, I am echoing because you will get to know what it is that it has chosen. Okay, okay. Thank you. Thank you so much. Okay, cool. It's fine. So, Saurav, I think I am enabling your mic. Yes, Saurav. Yeah. Good evening, sir. basically sir i just have a small doubt i i just want to know the difference between ecs and eks basically that is one question okay see kubernetes is something which has been built in the google yard i mean it was given to open source foundation only after 2016 but amazon started the services in 2005, and containerization also became popular around that period. And around 2010-2011, Kubernetes was, the source code was not available

because it was not given to the software foundation. So what Amazon did is, to compete with Kubernetes, it started a containerization service, which it called as ECS. So, ECS is AWS old container solution. You can use any container management code to run your container. It's the ECS. Now, when Kubernetes was donated to the Software Foundation, then the code was available for everybody. So, Amazon also picked up the code. Azure also picked up the code. Any other code was with Google. So Google started running that Kubernetes service as a GKE, Google Kubernetes Engine. Now, the same Kubernetes, Amazon also took up the source code, and it is running as an Elastic Kubernetes Services, EKS. Azure also is running. So once EKS started coming into the Amazon environment, Then everybody started moving towards EKS and very less using the ECS, but both of them are available. So, sir, basically this Docker file could be run on EKS as well, right?

Yes, yes. Instead of using the ECS, if I use EKS service, it will go and run in the Kubernetes cluster. Okay. Thank you, sir. That was... I chose ECS because I just wanted you guys to know something more because EKS and EKS and all will come along with your cloud sessions. ECS, nobody touches. Thank you, sir. That was just a small doubt I have. Sure. No problem. Thank you. Yes, Nishant. I'm allowing you to make it. This is the last question I'm going to take today. Yes, sir. Hello. So, sir, I just have like two questions. So first one is related to this EKS only. So if we deploy the services in EKS, then will we be seeing the same pods, same containers running in ECS UI or it will be only just running inside that namespace of Kubernetes? Sorry, come back again. I missed the context. Can you repeat? Yes. So I was saying that if we deploy the same service in EKS so will we be seeing that containers running inside that ECS

UI also or it will be just inside running inside that EKS namespace only in the EKS namespace you will not see EKS and ECS are two different services what you run in ECS you will be able to see in ECS what you are running in EKS you will be able to see it in EKS okay and so my second question is like how does uh authorization will like suppose if i want to uh like make sure that whatever the request is coming from front end is like a genuine request from my front end only like since we have deployed here two microservices right if i'm not wrong so yeah if i want to make sure that this request is coming from a genuine microservice like from my your microservice then how will i authenticate that okay if i understand your question adjustment if my backend is accepting the request from frontend yes how do i know that my frontend only is requesting yes sir yes yes okay so this is something that you are going to build

in your environment and application together so your application will be running only in your environment, for example, the front-end, you actually have not exposed to the front-end application. I have exposed only my load balancer. So, all my request is going to come to my load balancer. Now, before it reaches my load balancer, it will be checked by my network environment, which is not visible to the entire world. So, it might be going through an IDS, it might be going through a firewall and then it will reach the load balancer and after that it will come into my cluster. So there is no question of a foreign thing coming between a front end and back end. Both my front end and back end are running in my cluster. What is outside of my cluster is the load balancer. So now only that load balancer would be allowed to communicate to the cluster. no other load balancers can move traffic to this cluster so once it receives from that load balancer

it is authenticated so any which way front end is also not exposed you cannot reach to my front end application outside the internet it's not available only my load balancer is available makes sense? yes sir, ok thank you cool so I see Varun also rising. Last question I would take. It's already 9.41. Yes, Varun. Please go ahead. Sorry, sir. One last one more question. When you're showing the cloud watch, I saw that your back-end health check was checked on 1.57.0.0.1 and all other things were in different IPs. Question is if you're running in a container, it's not necessarily correct because so that both the ports or the containers will always go to the same virtual machine or I've misunderstood something. Can you repeat your question, please? So when you were showing in the cloud watch, when we were looking into it, I saw the backend health check was on 127.0.0.1. That is localhost. Yeah. That's localhost. My question is,

it's not necessary that both the ports or both the containers will always, backend and frontend will always go to the same VM, correct? So in that case See every VM will have a local host Correct And a VM can have multiple containers running in it We have not specified how many VMs to be created and which container to run We have just left it to the ECS to run it so that is where exactly if you want to differentiate you can see the private IP address it also had 172 series that 127 series is only for health it is doing locally so that's why it is telling 127 local host but our request and all is coming from outside so you would have seen the private IP address 172 series for our logs, transactional logs. Correct. That's how it is differentiated. Okay. So you are saying that the front end and the back end will be always in the same VM and they are reachable on the... No, need not be. Need not be. But generally we won't... See, what I ran is in

the express mode. I have not configured the cluster, but generally the cluster will be configured. nodes will be created and containers will be running in specific nodes only. So that is how the production setup will be. In that case also, you will be able to see only the private IP addresses. Yes, clearly, clearly, got it. Well, guys, I hope you would have enjoyed and it could have benefited you. Thank you very much. One more thing Gyan is asking what is the difference between MySQL, MSSQL and DynamoDB. Okay, DynamoDB is not a RDS. MySQL and SQL Server are relational databases. DynamoDB is a NoSQL database. That is the only it is. Okay. Hope it would have clarified you again. Thank you very much, guys. We will see tomorrow afternoon at 2 o'clock. We will continue our journey from here. Thank you very much. Take care. Bye-bye.

