for all who got comfused with attaching the role to the ec2 instance know it happens because of the different AWS UI when creating the role - make sure to select EC2 in the use case -> press next and only then add the codeDeploy permission
Hi Abhishek .. thank you so much for your amazing project .. I was able to complete this in 2 days after so much of troubleshooting.. finally I could complete 🎉
Hi abhishek, 27:43 min I'm enable to attach my role to an ec2 instance , I'm having 6roles but when i goto instance id > actions >security>modify roles> its showing no IAM roles , How can i resolve this
A possible solution would be to choose EC2 instead of CodeDeploy, on clicking next add permission policy for "AWSCodeDeployFullAccess" or lesser permissions. Then it will appear when refreshing the IAM roles. But haven't yet tested to see if it will work correctly in this scenario. @prasadzungarepatil4696
Hi Sir, I have been following your videos all the time its very nice and i learnt a lot and developed robust infrastructure because of you, Thanks a lot. Now my one humble request is can you do a prometheus and grafana detailed video where you can monitor custom applications using service monitors or any other way we have. many people are searching for prometheus and grafana with custom applications deployment where we can monitor all the developed applications inside prometheus & graf....in youtube all are only showing setup of prometheus not the custom applications monitoring please can you throw some light on that....Thanks a lot for your hardwork
Abhishek anna Great video Learned a lot But if there is any chance, please do the video on code deploy on ecs or eks. It will be much more helpful. Thanks for the efforts anna
Hi Abhishek, at 27:34, you have created ec2-codedeploy-role. But you have assigned "code-deploy-role" to the Instance. Both are different. I am unable to see the "ec2-codedeploy-role in the dropdown on ec2 instance roles to select. Do we need to create a separate role. please help. thanks
@@sajiyasalat it's because the first role created was for CodeDeploy service so it can deploy to ec2 instance. But for EC2 instancce to communicate back with codeDeploy we need to create another role for EC2 service that has codeDeploy permission
Around 33:00 when you are creating the deployment groups, there is a new UI and I don't know what to do. It is asking for ECS cluster name, Load balancers, and target group.
finally completed this ultimate CI/CD after spending 6-7 hours and dealing with lots of errors and troubleshooting them, went through aws official documentations and realised the importance of troubleshooting.
can you tell my , one thing that when i add codedeploy role in ec2 instance in security/manage iam role , i am not gettng option of my role and we also can't do hardcode please tell
@@goofyguy6954 - Use aws cloudshell or cli to fix this error by following the below commands 1. aws iam create-instance-profile --instance-profile-name CodeDeployInstanceProfile 2. aws iam add-role-to-instance-profile --instance-profile-name CodeDeployInstanceProfile --role-name
I created a role as shown in the video for code deploy to talk to ec2 instance but the created role is not being shown in the drop down section of modify ec2 iam policy section .
@@jyothikachinna6966 you need to create two roles with same permissions. Two roles shown in the videos are different. Check the roles of the names in the video
@@khanmohammad6725 while creating the role choose ec2->next-> name->attach policies(EC2 full Access and AwsCodeDeploy). after doing this you will see the role in drop down
failed, failed, failed, failed, failed, failed more the scenarios which i failed I didn't check privileges mode, second docker imaged was not proper in script folder and again there is some syntax check buildspec and again system manager wrong input of docker values and again service roles of code deploy to ec2 and ec2 to code deploy and there is some thing missing in the artifacts where it was not able to identify in the S3 bucket and finally code build is succeeded and code deploy is succeeded. Abhishek this is an awesome ci/cd hit and trail practice practice practice and learn by doing. Awesome Abhishek. Thank you.
Hi Bro while run the code deploy, I am facing this issue - CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server. I checked my code deploy agent in ec2 but its running. i checked in terminal. I am not able to fix this issues. can anyone help me on this issues
I had a doubt, can't we just install docker inside the ubuntu instance through the scripts in before install part of CD using appspec file, why we have to ssh and then install all that?
Great project Abhishek. I just finished the CI/CD project and it was successful even though I had to troubleshoot some errors for two days 🤣🤣 but I'm happy that I learned a lot from it. Thank Sir.🫡🫡🫡 moving to Day-16 next.
Hi Abhishek, could you please please please make a playlist or atleast a crash course on CDK? Every company is asking CDK, Lambda serverless and python these days. Since your Python class was very useful I am kinda begging for CDK playlist..
Hi Abhishek, Your content is really really helpful to start our journey in Devops and cloud. I have one suggestion here please let us know if there will be any cost added in doing this project as even if we do do free instance some or other application adds cost to it. For example I followed your terraform series to deploy in AWS and created NAT Gateway . Even though I deleted all instance I was charged for the time I used which I was not aware. It will be really helpful If you let us know the cost for this application used.
Abhishek at 27:49, you used the different role instead of the newly created role(ec2-code...) earlier. And my doubt is no roles are populating in modify IAM role when im trying to do, why is that happening ?
You have Created ec2-codedeploy-role to assign EC2 so that it will speak to codedeploy but while attaching the role to EC2 instance the role is different. I am trying to replicate the same but unable to load the role created for Awscodedeploy. Please advise.
Yeah just got confused with the names .. both have same permissions so you dont have worry. Create role before you start with creating aws code deploy then it the role will populate
Hi Abhishek, the readme files are a great way to summarize the class, thanks for including them. However, I couldn't find one for day 15. If you have it handy, can you please commit it to your repo?
Hi Abhishek, thanks for your efforts. I am not able to get the Codedeploy role in the ec2 instance dropdown to attach it with ec2. What will be the possible issue?
I tried with ec2 service role and attached the codedeploy entity for connection then it reflected in the drop-down. Also created the codedeploy role having the ec2 full access permission to use it in deployment and able to complete the project.
would you explain on 27:27 to next. You create an role for code deployed with name ec2-codedeploy-role. but you are attaching code-deploy-role to ec2 on 27:51. How it possible? I could not found that role during my practice. And what should I do if my appspec.yaml will not be store on github and s3. How I will manage deployment.
while creating the role choose ec2->next-> name->attach policies(EC2 full Access and AwsCodeDeploy). after doing this you will see the role in drop down
Hello Abhishek, I have a query. Ihave learnt Jenkins an year ago so i know only basics of it. Should I learn Jenkins or go with your playlist with AWS CICD? ps: I am not yet working. i have learn AWS as well.
Hello, I have a doubt in this video. I did the steps exactly as shown in this video and everything was good upto I created the IAM role, but when I tried to modify the IAM role I was not able to see the role I created. It was only showing only one option- No IAM role. Please help me
1st choose ec2 instead of codedeploy for use case --> next --> then add codedeploy full access permission for code-deploy-role and then create a new role as ec2-codedeploy-role and here choose use case as codedeploy and then add ec2 full acess permission
Hi bro I've been following you and appreciate your efforts. Can you please make a video on Roles and responsibilities from docker to Continous integration, because one person cannot work on Complete DevOps tools daily. I'm on bench as a cloud engineer wanted to know exact roles and responsibilities it will be helpful for my interview purpose. Thanks in advance..
Please help me on the error. CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server. agent status is fine. Nothing started on deploy.
Hello Abhishek, can you please tell me how is the job market of Terraform today in India ? Can I crack a job if I learn AWS from your free channel + TF + GIT + JENKINS.. Please suggest.
sir tell me about the token of Github you associated , the name 'abhishek' is the token name given during the creation of Github token in github , or the token provided in AWS and name after that as abhishek.
for all who are not able to attach the role the possible solution is to 1st choose ec2 instead of codedeploy for use case --> next --> then add codedeploy full access permission for code-deploy-role and then create a new role as ec2-codedeploy-role and here choose use case as codedeploy and then add ec2 full acess permission
Hi Abhishek, if there are multiple micro services are running on single deployment server then how will the specific container will be filter and killed by stop script … also please confirm if EXPOSE instruction on docker file is just for documentation or it will actually expose the container on mentioned port
@@AbhishekVeeramalla Thanks for that bro, but I need to implement that Java code using AWS codepipeline, for that I need some brief explanation bro. How to write Codebuild for Java application
can any body resolve my issue while i am running code build all set ok but while running code pipe line using same code build every phase excuted successfully but there is an error it throws "UPLOAD_ARTIFACTS State: FAILED [Container] 2024/07/22 13:47:49.886707 Phase context status code: CLIENT_ERROR Message: no matching base directory path found for ../simple-python-app" can any body resolve this issue.
my deployment is failing at DownloadBundle after I added it into the pipeline...Does anyone know what the issue is and how to solve it?? Everything else is working fine.
Thanks Abhi for this wonderful video on AWS CI/CD using code commit, code build and code deploy. I have watched all these video's. I have one small question when i am writing a stop.sh for removing the running container suggestion was to use container_id='docker ps | awk -f " "'{print $1}'' and delete the container by running docker rm -f $container_id. what if i have multiple containers here, how do i achieve the same and need to delete just this micro service alone?
I think i can achieve this by uniquely naming my container while running my docker run command initially and use that name for removing it. Thanks again Abhi for such wonderful information and videos 👍👍
NEED HELP !! I made a role for code deploy but when I am attaching that role to EC2 instance, its not showing there the list of roles or the code-deploy-role. I've tried multiple time creating the role and restarted the aws console but still stuck into this Please Help
hello bhaiya is this possible that whenever i update the code and the code is not update and after correcting all data its having same error again and again?
Hi @Abhishek, When i am trying to attach IAM Role with EC2 instance, The drop down list is empty and its not showing anything. Can you help me to resolve this issue.
I also faced same issue. I used AWS CLI to attach IAM role to EC2 instance , you'll first need to create an instance profile, associate the IAM role with the instance profile, and then finally associate the instance profile with the EC2 instance. Here are the steps: Create an Instance Profile: Use the create-instance-profile command to create an instance profile. # aws iam create-instance-profile --instance-profile-name my-instance-profile Associate the IAM Role with the Instance Profile: Use the add-role-to-instance-profile command to associate the IAM role with the instance profile. # aws iam add-role-to-instance-profile --role-name mention-role-name --instance-profile-name my-instance-profile Associate the Instance Profile with the EC2 Instance: Use the associate-iam-instance-profile command to associate the instance profile with the EC2 instance. # aws ec2 associate-iam-instance-profile --instance-id mention-instance-id --iam-instance-profile Name=my-instance-profile
I am preparing for aws developer associate, does this course helps me and your suggestion which topic shall I work more apart from the topics you are going to cover ?
I am not able to see therole after creating for codedeploy what might be the issue..i have done exactly the same way...not able to see any IAM role under manage IAM role in ec2instance
@@AbhishekVeeramalla seems there is samll update from aws end.... We have to grant role access to ec2 as well as codedeploy after that it's visible on ec2.. Iam manage role
Error: I have created ec2 instance installed agent and created IAM role, when i tried to attach that role to ec2 instance , No IAM role is populating , i am not able to see the role i have created. Please help .
@AbhishekVeeramalla Firstly, thank you for your hard work and useful content. I've been learning a lot. I have a weird case that all checkout, build and deploy stages are successfull, and image is being updated and pulled in docker hub. Also, the image is being shown in ec2 instance(docker image ls) but when I do docker ps there is nothing and checked inbound rules also but there is no a port my app is bounded. What might be the reason that docker container is not being shown and app is not starting?
@@AbhishekVeeramalla Thank you for your response, I found the cause and fixed. I run container in the background and it did not show me a bug then started it without -d option and it showed me the bug related to environment variables then just fixed. Once more thank you very much for the amazing content
Hi Abhishek, I am new to DevOps and AWS, learning it from your videos. From an interview point of view, how to explain all these steps? I hope it's difficult to remember all these steps and explain them. Or can we just tell an overview of it? Like, what we do in each of the CI/CD service parts.
any one completed CICD. was able send request to server inside EC2. but unable access application publicly. even after adding 5000 port as security group.
hi Abhishek bro while accessing the app through public ip i am getting site not reached error.i am using port 8000 and i have also opened the port 8000 in security group on ec2.i am able to perform complete cicd process through your video but i am unable to access the application via public ip.please help me
I am also stuck at this step. Earlier there was some access denied error for the COde Deploy's role. I added S3FullAccess permission to the role to make it work.
Build failed to start. The following error occurred: Cannot have more than 0 builds in queue for the account I am getting this error in building phase don't know what to do
Hi Abhishek i getting this error CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server. cloud you please check and please help me
I was doing the CD part and i get the error mentioned below: The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems. Anybody who faces the same issue and find a solution please help!!!!
@AbhishekVeeramalla Deployment error message The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems............................. I am getting this error in the deploy stage.
that's because may be you haven't installed docker in ec2 instance so either you have to write script BeforeInstall in appspec to install docker or you can do that manually using terminal. since you are pulling docker image in ec2 instance thorugh scripts you need to install docker beforehand
for all who got comfused with attaching the role to the ec2 instance know it happens because of the different AWS UI when creating the role - make sure to select EC2 in the use case -> press next and only then add the codeDeploy permission
even after following your step, while creating deployment group, the role which was attached to EC2 does not auto populate. what shud be done for that ??????????? @user-bg
Right ..!actually the role that he created was named ec2-codedeploy-role and the one that was attached in ec2 was just code-deploy-role which probably existed from before as it instantly popped up in the drop-down instead of ec2-codedeploy-role which is expected..! hence the confuision and above steps resolves it.. Thanks..!
Hi Bro while run the code deploy, I am facing this issue - CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server. I checked my code deploy agent in ec2 but its running. i checked in terminal. I am not able to fix this issues. can anyone help me on this issues
@@ketansolanki5727 yes i found out. Check your IAM and check trust relationship and edit them and add permission for code deploy and ec2 and attach the role to your ec2 instance then restart your code deploy agent. For me its worked try once if any doubts use chatgpt you will get much idea
The CICD part was specifically excellent! Thank you very much for sharing this valuable experience for free with us.
Glad you enjoyed it!
Hi Abhishek, thanks a lot. I have no words to tell or express about you and the knowledge that you are feeding us.🙏
Thanks
I am really fortunate to have a subscriber of this channel for learning new things from Abhishek bhai 😊❤
for all who got comfused with attaching the role to the ec2 instance know it happens because of the different AWS UI when creating the role - make sure to select EC2 in the use case -> press next and only then add the codeDeploy permission
Yes, thanks for clarifying.
Ohh mann you are savier, I spent 1 hour to conclude it... Thanks buddy.
thank you
Thanks for saving the day. I was searching for this comment from almost 20 min
thank you
Hi Abhishek .. thank you so much for your amazing project .. I was able to complete this in 2 days after so much of troubleshooting.. finally I could complete 🎉
Thank you Abhishek 🎉🎉🎉 learned so much and encounter so many problems to solve that. Help me understand all much better
My pleasure 😊
explanation is excellent and assignment done as well. thank you
instead of awk command we can use docker ps -q it will give us only container id
Thank you so much, Abhishek for the project, I'm becoming a better and greater DevOps Engineer in every step of the way. Thank you🫡🫡🫡🫡
You are most welcome
Thank you Abhishek sir for the great explanation ❤😍
My pleasure
very helpful and awesome video , you teach from heart
Glad to hear that
I must recommend that u are doing a wonderful job.especially troubleshooting every detail failure. Hats off man
Thanks a ton
Great learning..... Looking forward to work with Blue/green and canary startegy with codedeploy... ❤
You are welcome
Thanks a lot for sharing your knowledge and experience.
Finally completed this awesome tutorial
Glad it helped!
Hi abhishek,
27:43 min
I'm enable to attach my role to an ec2 instance ,
I'm having 6roles but when i goto instance id > actions >security>modify roles> its showing no IAM roles ,
How can i resolve this
Have you solved it?
A possible solution would be to choose EC2 instead of CodeDeploy, on clicking next add permission policy for "AWSCodeDeployFullAccess" or lesser permissions. Then it will appear when refreshing the IAM roles. But haven't yet tested to see if it will work correctly in this scenario.
@prasadzungarepatil4696
I am also facing the same issue right now did you solved it tell me how to solve this
@@MohanReddy-by9sv did anyone solved this issue?
initially make for the ec2 and then in it add policy for codedeploy(AWSCodeDeployFullAccess)
Thank you Abhishek sir 🎉❤️
Welcome
Millions Millions❤🎉 pranamas
🎉
Hi Sir,
I have been following your videos all the time its very nice and i learnt a lot and developed robust infrastructure because of you, Thanks a lot.
Now my one humble request is can you do a prometheus and grafana detailed video where you can monitor custom applications using service monitors or any other way we have. many people are searching for prometheus and grafana with custom applications deployment where we can monitor all the developed applications inside prometheus & graf....in youtube all are only showing setup of prometheus not the custom applications monitoring please can you throw some light on that....Thanks a lot for your hardwork
Excellent Session
thank you so much Abhishek🙏
My pleasure 😊
Abhishek anna
Great video
Learned a lot
But if there is any chance, please do the video on code deploy on ecs or eks.
It will be much more helpful.
Thanks for the efforts anna
Noted
Hi Abhishek, at 27:34, you have created ec2-codedeploy-role. But you have assigned "code-deploy-role" to the Instance. Both are different. I am unable to see the "ec2-codedeploy-role in the dropdown on ec2 instance roles to select. Do we need to create a separate role. please help. thanks
yes, we need to create another role for EC2 service that has permission for codedeploy
@@sauraabh I have a same problem but why do we need to create another role its not described in the video.
@@sajiyasalat it's because the first role created was for CodeDeploy service so it can deploy to ec2 instance. But for EC2 instancce to communicate back with codeDeploy we need to create another role for EC2 service that has codeDeploy permission
@rajendraprasad did u solve the issue of roles because I am not able to add roles to my ec2 instance
Thanks in advance
@@kodalirajkumar5007 Two separate roles need to be created, one for ec2 use case and other for code deploy use case
Around 33:00 when you are creating the deployment groups, there is a new UI and I don't know what to do. It is asking for ECS cluster name, Load balancers, and target group.
You are not able to create ?
finally completed this ultimate CI/CD after spending 6-7 hours and dealing with lots of errors and troubleshooting them, went through aws official documentations and realised the importance of troubleshooting.
can you tell my , one thing that when i add codedeploy role in ec2 instance in security/manage iam role , i am not gettng option of my role and we also can't do hardcode please tell
@@shivamgautam4275 please add "EC2" in use case and then code deploy as permission
@@shivamgautam4275 lol same here. how you resolve this error?
@@goofyguy6954 - Use aws cloudshell or cli to fix this error by following the below commands
1. aws iam create-instance-profile --instance-profile-name CodeDeployInstanceProfile
2. aws iam add-role-to-instance-profile --instance-profile-name CodeDeployInstanceProfile --role-name
I created a role as shown in the video for code deploy to talk to ec2 instance but the created role is not being shown in the drop down section of modify ec2 iam policy section .
Did you find the solution
@@jyothikachinna6966 you need to create two roles with same permissions. Two roles shown in the videos are different. Check the roles of the names in the video
Hi @@SoniyaS-d3g,
even i'm facing the same issue. could you please tell why two roles with the same permissions?
@@khanmohammad6725 while creating the role choose ec2->next-> name->attach policies(EC2 full Access and AwsCodeDeploy). after doing this you will see the role in drop down
Thank You Abhishek
failed, failed, failed, failed, failed, failed more the scenarios which i failed I didn't check privileges mode, second docker imaged was not proper in script folder and again there is some syntax check buildspec and again system manager wrong input of docker values and again service roles of code deploy to ec2 and ec2 to code deploy and there is some thing missing in the artifacts where it was not able to identify in the S3 bucket and finally code build is succeeded and code deploy is succeeded. Abhishek this is an awesome ci/cd hit and trail practice practice practice and learn by doing. Awesome Abhishek. Thank you.
Amazing 🤩 and yes this is how you learn things. Keep Learning and Keep Sharing 🚀
@@AbhishekVeeramalla Hi Abhishek, What should I provide in Docker_registry_url parameter?
Hi Anil. I am facing an issue related to the missing artifacts. Can you please tell me how you eliminated that?
Hi Bro while run the code deploy, I am facing this issue - CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server. I checked my code deploy agent in ec2 but its running. i checked in terminal. I am not able to fix this issues. can anyone help me on this issues
@@sabarinath2789Same error im to facing!have you resolved it?
Hi Abhishek.. two days three times practiced and successfully completed CI/CD process..
Keep it up
@abhishekveeramalla, there is no Day-15 folder in your Github repo.
Thank you.
You are welcome
I had a doubt, can't we just install docker inside the ubuntu instance through the scripts in before install part of CD using appspec file, why we have to ssh and then install all that?
very much informative Video LEARNED A LOT THANKS LOT abhishek
You are welcome
hi sir, thanks for sharing valuable info to us.
You are most welcome
Hi Abhishek, thanks for this wonderful course it's helping me so much. But i have a request to make, please upload videos everyday without delap
I am trying my level best
Great project Abhishek. I just finished the CI/CD project and it was successful even though I had to troubleshoot some errors for two days 🤣🤣 but I'm happy that I learned a lot from it. Thank Sir.🫡🫡🫡 moving to Day-16 next.
Nice work!
Hi Abhishek, could you please please please make a playlist or atleast a crash course on CDK? Every company is asking CDK, Lambda serverless and python these days. Since your Python class was very useful I am kinda begging for CDK playlist..
Noted
I have created one IAM role but cant see the role in the dropdown while assigning role to the EC2 instance for accessing codedeploy, please help.
Create another role ,while creating select ec2&codedeploy and then allow cmm full access, & codedeploy full access then in drop down it will appear
@@immuind2009 I am unable to select both EC2 and CodeDeploy. Can you elaborate?
@@immuind2009 not able to select both, coud you please help?
Hi Abhishek, Your content is really really helpful to start our journey in Devops and cloud. I have one suggestion here please let us know if there will be any cost added in doing this project as even if we do do free instance some or other application adds cost to it. For example I followed your terraform series to deploy in AWS and created NAT Gateway . Even though I deleted all instance I was charged for the time I used which I was not aware.
It will be really helpful If you let us know the cost for this application used.
Abhishek at 27:49, you used the different role instead of the newly created role(ec2-code...) earlier. And my doubt is no roles are populating in modify IAM role when im trying to do, why is that happening ?
please try to select ec2 in use case and then code deploy as permission
End of pipeline the deployment part failing with
" The provided role does not have permission to access S3 "
But we havent used S3 anywhere ???
You have Created ec2-codedeploy-role to assign EC2 so that it will speak to codedeploy but while attaching the role to EC2 instance the role is different. I am trying to replicate the same but unable to load the role created for Awscodedeploy. Please advise.
Yeah just got confused with the names .. both have same permissions so you dont have worry.
Create role before you start with creating aws code deploy then it the role will populate
Hi abhi tqs for upload can u make a video how to switch non technical to get job for freshers, how to prepare.. Can make video plzz
Hi Abhishek, the readme files are a great way to summarize the class, thanks for including them. However, I couldn't find one for day 15. If you have it handy, can you please commit it to your repo?
what skills DevOps need to after Iac and CICD and monitoring ?
Hi Abhishek, thanks for your efforts. I am not able to get the Codedeploy role in the ec2 instance dropdown to attach it with ec2. What will be the possible issue?
Sometimes it takes time .. just refresh and try from beginning
I tried with ec2 service role and attached the codedeploy entity for connection then it reflected in the drop-down. Also created the codedeploy role having the ec2 full access permission to use it in deployment and able to complete the project.
iam also getting the same issue
@@akashmendhe9263 bro plz explain it bro i strucked this from 6 hrs...
@@AbhishekVeeramalla I have refreshed many times. still the issue persisted.
would you explain on 27:27 to next. You create an role for code deployed with name ec2-codedeploy-role. but you are attaching code-deploy-role to ec2 on 27:51. How it possible? I could not found that role during my practice.
And what should I do if my appspec.yaml will not be store on github and s3. How I will manage deployment.
while creating the role choose ec2->next-> name->attach policies(EC2 full Access and AwsCodeDeploy). after doing this you will see the role in drop down
Hi Abhishek, I created an IAM role, but the role doesn't appear in the dropdown list when I launch an instance. What do I do?
Hi abhishek bhaiya ! I am getting error in code deploy DownloadBundle it say access deny, i try alot but i am not able to solve it.can you help me.
same
Hello Abhishek, I have a query. Ihave learnt Jenkins an year ago so i know only basics of it. Should I learn Jenkins or go with your playlist with AWS CICD? ps: I am not yet working. i have learn AWS as well.
Yes, definitely.All the devops tools
Hello, I have a doubt in this video. I did the steps exactly as shown in this video and everything was good upto I created the IAM role, but when I tried to modify the IAM role I was not able to see the role I created. It was only showing only one option- No IAM role. Please help me
Did you found the answer brother?
they are two separate roles. check the names of the roles in the video. You need to create two separate roles
can someone help me please? when i try to ssh into my EC2 instance i get an error message **permission denied(public key)**
iam role that i have created is not showing in ec2 instance
1st choose ec2 instead of codedeploy for use case --> next --> then add codedeploy full access permission for code-deploy-role and then create a new role as ec2-codedeploy-role and here choose use case as codedeploy and then add ec2 full acess permission
Try : trust policy defined in the role that allows codedeploy to assume the role.
Gained lot of knowledge from this video .
Argo cd is relly best for deployment .
Nice video Anna
@abhishek, I checked implementing todays video...but i have noticed error "missing credentials error" .In Code deploy failed at "before install" .
U might be using my image .. please change the image to yours
I forked the repository to my github userid....pasted erro screenshot in LinkedIn.pls guide me once .
Have you solved it? the same problem im too facing
Hi bro I've been following you and appreciate your efforts. Can you please make a video on Roles and responsibilities from docker to Continous integration, because one person cannot work on Complete DevOps tools daily. I'm on bench as a cloud engineer wanted to know exact roles and responsibilities it will be helpful for my interview purpose. Thanks in advance..
hi abhishek, i have successfully deployed the application on container, but facing error accessing it on port 5000 using public ip of the instance
please help
Abhishek, can u make a video on how we can do continuous deployment using eks and fargate
Noted
Sir even after creating role and giving the code deploy policy it is not showing when i go to attach it to ec2 instance sir... pls help...
Thank you ^^
Please help me on the error.
CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server.
agent status is fine. Nothing started on deploy.
i got the same error, did u find the solution?
@@ketansolanki5727have you found the solution?Im too facing the same
@@ketansolanki5727 have you solved it???im too facing this same!
Hello Abhishek, can you please tell me how is the job market of Terraform today in India ? Can I crack a job if I learn AWS from your free channel + TF + GIT + JENKINS..
Please suggest.
Hey Abhishek amazing content man. It helps a lot.
Is there a playlist for these ultimate series where we can check day1-14 also
😍😍😍
yes
I created iam role that role is not available while selecting modify iam tole other roles also not showing what to do bro ? Abhishek bro ?
sir tell me about the token of Github you associated , the name 'abhishek' is the token name given during the creation of Github token in github , or the token provided in AWS and name after that as abhishek.
for all who are not able to attach the role
the possible solution is to 1st choose ec2 instead of codedeploy for use case --> next --> then add codedeploy full access permission for code-deploy-role and then create a new role as ec2-codedeploy-role and here choose use case as codedeploy and then add ec2 full acess permission
Life saver. Thank you so much!!
hi abhishek..what is continous testing usage cases . can you make a class on that please
Hi Abhishek, if there are multiple micro services are running on single deployment server then how will the specific container will be filter and killed by stop script … also please confirm if EXPOSE instruction on docker file is just for documentation or it will actually expose the container on mentioned port
Thanks Abhishek, for the great explanation, but i need to implement on Java based application, can you give any brief for that
Watch the video with name - ultimate cicd piepline implementation
@@AbhishekVeeramalla Thanks for that bro, but I need to implement that Java code using AWS codepipeline, for that I need some brief explanation bro. How to write Codebuild for Java application
can any body resolve my issue while i am running code build all set ok but while running code pipe line using same code build every phase excuted successfully but there is an error it throws "UPLOAD_ARTIFACTS State: FAILED
[Container] 2024/07/22 13:47:49.886707 Phase context status code: CLIENT_ERROR Message: no matching base directory path found for ../simple-python-app" can any body resolve this issue.
Help me with the Terminal part i was unable to do it , Abhishek please do one vedio regarding the terminal and how it should it using in step by step
It is already covered in devops zero to hero playlist. Pls start from basics
my deployment is failing at DownloadBundle after I added it into the pipeline...Does anyone know what the issue is and how to solve it?? Everything else is working fine.
check repo url
@@goofyguy6954can you explain in details im to facing this error
Thanks Abhi for this wonderful video on AWS CI/CD using code commit, code build and code deploy. I have watched all these video's.
I have one small question when i am writing a stop.sh for removing the running container suggestion was to use
container_id='docker ps | awk -f " "'{print $1}'' and delete the container by running docker rm -f $container_id. what if i have multiple containers here, how do i achieve the same and need to delete just this micro service alone?
I think i can achieve this by uniquely naming my container while running my docker run command initially and use that name for removing it. Thanks again Abhi for such wonderful information and videos 👍👍
NEED HELP !!
I made a role for code deploy but when I am attaching that role to EC2 instance, its not showing there the list of roles or the code-deploy-role.
I've tried multiple time creating the role and restarted the aws console but still stuck into this
Please Help
chose ec2 instead of codedeploy while creating role
hello bhaiya is this possible that whenever i update the code and the code is not update and after correcting all data its having same error again and again?
Hi @Abhishek,
When i am trying to attach IAM Role with EC2 instance, The drop down list is empty and its not showing anything.
Can you help me to resolve this issue.
I also faced same issue. I used AWS CLI to attach IAM role to EC2 instance , you'll first need to create an instance profile, associate the IAM role with the instance profile, and then finally associate the instance profile with the EC2 instance. Here are the steps:
Create an Instance Profile:
Use the create-instance-profile command to create an instance profile.
# aws iam create-instance-profile --instance-profile-name my-instance-profile
Associate the IAM Role with the Instance Profile:
Use the add-role-to-instance-profile command to associate the IAM role with the instance profile.
# aws iam add-role-to-instance-profile --role-name mention-role-name --instance-profile-name my-instance-profile
Associate the Instance Profile with the EC2 Instance:
Use the associate-iam-instance-profile command to associate the instance profile with the EC2 instance.
# aws ec2 associate-iam-instance-profile --instance-id mention-instance-id --iam-instance-profile Name=my-instance-profile
same doubt
same here
I am preparing for aws developer associate, does this course helps me and your suggestion which topic shall I work more apart from the topics you are going to cover ?
Hi sir.. I need some help on Azure with terraform.. how i can reach you..pls
telegram and topmate
I am not able to see therole after creating for codedeploy what might be the issue..i have done exactly the same way...not able to see any IAM role under manage IAM role in ec2instance
I have figure out the issue
Awesome what was the issue ?
@@AbhishekVeeramalla seems there is samll update from aws end.... We have to grant role access to ec2 as well as codedeploy after that it's visible on ec2.. Iam manage role
As i granted only codedeploy role it didn't give me the list to attach role in ec2 instance...
Hi @@onelife7284 ,
How can we select both ec2 and code deploy? and what roles to be given. Could you please help.
is anyone's application run on web page after get succeeded in code pipeline stages?
Error: I have created ec2 instance installed agent and created IAM role, when i tried to attach that role to ec2 instance , No IAM role is populating , i am not able to see the role i have created. Please help .
select EC2 in the use case -> press next and only then add the codeDeploy permission
@AbhishekVeeramalla Firstly, thank you for your hard work and useful content. I've been learning a lot. I have a weird case that
all checkout, build and deploy stages are successfull, and image is being updated and pulled in docker hub. Also, the image is being shown in ec2 instance(docker image ls) but when I do docker ps there is nothing and checked inbound rules also but there is no a port my app is bounded. What might be the reason that docker container is not being shown and app is not starting?
May be the container is deleted after the execution .. run container in background using -d option
@@AbhishekVeeramalla Thank you for your response, I found the cause and fixed. I run container in the background and it did not show me a bug then started it without -d option and it showed me the bug related to environment variables then just fixed. Once more thank you very much for the amazing content
Hi Abhishek,
I am new to DevOps and AWS, learning it from your videos.
From an interview point of view, how to explain all these steps? I hope it's difficult to remember all these steps and explain them. Or can we just tell an overview of it? Like, what we do in each of the CI/CD service parts.
The diagram/workflow is pretty useful and I'd just explain it
can anyone please send the documentation link that are used in video for codebulild deployment
any one completed CICD. was able send request to server inside EC2. but unable access application publicly. even after adding 5000 port as security group.
hi Abhishek bro
while accessing the app through public ip i am getting site not reached error.i am using port 8000 and i have also opened the port 8000 in security group on ec2.i am able to perform complete cicd process through your video but i am unable to access the application via public ip.please help me
got the solution?
same problem
deployment failed : Error code UnknownError Script name Message Access Denied. Download bundle
I am also stuck at this step. Earlier there was some access denied error for the COde Deploy's role. I added S3FullAccess permission to the role to make it work.
@@feeroz4u ohh thanks, I forget about the access denied statement and focusing on unkown error. Great
Will you also explain AWS connect?
Not in this series , may be later
Build failed to start. The following error occurred: Cannot have more than 0 builds in queue for the account
I am getting this error in building phase don't know what to do
Even I am getting the same error, tried all possible scenarios but didn't help.
@abhishekVeeramalla - Could you please on this
Hi Abhishek i getting this error CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server. cloud you please check and please help me
have you find out the solution. I am facing the same error. could you help me how to fix this issues
will it price me while implementing the process?
can anyone help me, as i am not getting my codedeploy role in the list of iam role in ec2 section.
Create another role ,while creating select ec2&codedeploy and then allow cmm full access, & codedeploy full access then in drop down it will appear
@@immuind2009 thanks.
I was doing the CD part and i get the error mentioned below:
The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems.
Anybody who faces the same issue and find a solution
please help!!!!
did you find any solution
7:59 no EKS for deployment only ec2/labmda/ECS
Eks is very widely used and we covered that in Day 22
@AbhishekVeeramalla
Deployment error message
The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems............................. I am getting this error in the deploy stage.
did you find a solution?
that's because may be you haven't installed docker in ec2 instance so either you have to write script BeforeInstall in appspec to install docker or you can do that manually using terminal.
since you are pulling docker image in ec2 instance thorugh scripts you need to install docker beforehand
Please make same type video on kubernetes.
Check the video - ultimate cicd pipeline
for all who got comfused with attaching the role to the ec2 instance know it happens because of the different AWS UI when creating the role - make sure to select EC2 in the use case -> press next and only then add the codeDeploy permission
you are life saver
even after following your step, while creating deployment group, the role which was attached to EC2 does not auto populate. what shud be done for that ??????????? @user-bg
Thankyou
Right ..!actually the role that he created was named ec2-codedeploy-role and the one that was attached in ec2 was just code-deploy-role which probably existed from before as it instantly popped up in the drop-down instead of ec2-codedeploy-role which is expected..! hence the confuision and above steps resolves it.. Thanks..!
@@yogeshgowda8493Have you solved the problem?
Hi Bro while run the code deploy, I am facing this issue - CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server. I checked my code deploy agent in ec2 but its running. i checked in terminal. I am not able to fix this issues. can anyone help me on this issues
i got the same error did u find any solution?
@@ketansolanki5727 yes i found out. Check your IAM and check trust relationship and edit them and add permission for code deploy and ec2 and attach the role to your ec2 instance then restart your code deploy agent. For me its worked try once if any doubts use chatgpt you will get much idea
can we have the day-15 repo for this video