CodeDeploy failed saying The overall deployment failed because too many individual instances failed deployment

+1 vote
CodeDeploy failed

error:

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.
Jul 1, 2019 in AWS by Janvi
8,548 views

1 answer to this question.

+2 votes
Hello Janvi,

Please ensure the below things, me too had same error.

Install or reinstall the CodeDeploy agent for Amazon Linux or RHEL

sudo yum update
sudo yum install ruby
sudo yum install wget
cd /home/ec2-user
wget https://aws-codedeploy-ap-south-1.s3.ap-south-1.amazonaws.com/latest/install
chmod +x ./install
sudo ./install auto

Policy for EC2InstanceProfileIAMRole

AmazonEC2RoleforAWSCodeDeploy
AmazonS3FullAccess

Policy for CodeDeployServiceROle
AWSCodeDeployRole

I guess you are having your code on your S3 Bucket, if please mention it revision name as below given in codedeploy deployment section.
s3://codedeoployitboundry/cdeploy/SampleApp_Linux.zip

Note: Not full permission recommended i belive you are experimenting in you lab.
answered Dec 27, 2019 by Thadi Karan

Hi 

I added the following Policy for CodeDeployServiceRole

AWSCodeDeployRole

And now it works.

Thanks a lot!!

Sounds so great...
Hey guys, thanks for your contribution. Please upvote if you found the answer helpful.

Do register on the Edureka community and earn points on every contribution that you make.

Cheers!!

Related Questions In AWS

0 votes
2 answers

How many instances can be created under AWS free tier account

Ans 1. Amazon charges based on usage per ...READ MORE

answered Jun 7, 2018 in AWS by MISHA
• 520 points
1,937 views
0 votes
1 answer

AWS EC2 Free Tier- how many instances can i run?

Amazon has a handy page that details ...READ MORE

answered Jul 6, 2018 in AWS by Priyaj
• 58,100 points
3,042 views
0 votes
1 answer

AWS email saying have exceeded the free-tier limit.

I got a similar message, except I ...READ MORE

answered Jul 10, 2018 in AWS by Priyaj
• 58,100 points
961 views
0 votes
1 answer
+1 vote
1 answer

How many times can one receive the AWS free tier?

Yes, it is possible to create a ...READ MORE

answered Jul 27, 2018 in AWS by Priyaj
• 58,100 points
1,572 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP