Hi Team,
I did CodeDeploy course Mini Lab3 twice but there is a part I’ve never passed yet.
I kept failing the deployment. Can anyone give me any tips to debug/solve this?
Where I stuck:
Question 7 where you create a deployment.
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.”
Yes, I posted on Discord as well. Sorry for the two posts on different platforms. Will post once from now on. (Normally I got a response within a day but didn’t get any reaction from anyone for a few days this time, so thought Discord is not that active as Slack)
Hello, I’m also experiencing the same issue right now. Has anyone found the fix yet? I believe it has something to do with EC2 not having access to SSM from the error message I’m getting.
Error
There was a problem establishing AWS Systems Manager configuration: User: arn:aws:iam::835363682074:user/kk_labs_user_893447 is not authorized to perform: ssm:CreateAssociation on resource: arn:aws:ssm:us-east-1:835363682074:association/* because no identity-based policy allows the ssm:CreateAssociation action This is critical step to install CodeDeploy agent on your instances. Go to AWS System Manger to set up configuration.
Hi Henry,
I think the team is going to take a look at this issue. Someone passed this over to the team (see Discord). I have the same post on Discord. I am not sure if they contact me on Discord once they confirm, but if they do, I will post their response here as well.
Hi Team,
I tried the hands-on lab again. I am still not able to pass Mini lab3.
Can you help me debug?
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.”
It’s the same error that made me write this original post.
What I did for debugging:
I checked if EC2 volume is set correctly (gp2) and Region is set to us-east-1. Those were set correctly.
There were two IAM Roles available: EC2InstanceProfile and ecsInstanceRole. The instruction said “use EC2InstanceRole”, but there was no such role available.
Which one should I use?
Hi @chihiro-the-chaseed
I tried the lab that you mentioned, with EC2InstanceProfile role, lab worked fine.
can you be more specific with steps next to ec2 instance creation. Kindly let me know further details.
Regards.
It was, but I found the cause. It was me not setting the Security Group properly.
I cleared Question 7 and successfully deployed the app to EC2.
But now, stuck at another issue: Question 8 (final question), I cannot see the page through IPv4 DNS. I set the inbound rule to have SSH and HTTP with Source Type “My IP” and the outbound rule of all traffic allowing all IPv4 and IPv6.
The error I got accessing EC2 IPv4 DNS is the following:
This site can’t be reachedec2-54-175-205-73.compute-1.amazonaws.com took too long to respond.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_TIMED_OUT
I attached screenshots of the config page when creating EC2.
Hi @chihiro-the-chaseed
Thank you for letting us know. Please make sure you are accessing oh http instead of https. because by default clicking on open option beside ip address will use https, so please make sure to use http, as we allowed connection on http in security group configuration.
Regards.
Thank you so much!!
This was a good wake-up call for me. I need to study the network more.
(Note for some people if they experience something similar to mine accessing HTTP: the error “this site is not secure” may appear if you set your Chrome to allow secure access only)