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
816 views

1 answer to this question.

+1 vote
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 26, 2019 by Thadi Karan

Hi 

I added the following Policy for CodeDeployServiceRole

AWSCodeDeployRole

And now it works.

Thanks a lot!!

Sounds so great...

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
210 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
• 57,530 points
687 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 9, 2018 in AWS by Priyaj
• 57,530 points
65 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
• 57,530 points
52 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer