Reputation: 384
AWS CodeDeploy Fails on Hook BeforeStopTraffic after a wait and I have no logs or details.
I am assuming its some sort of issue communicating with the EC2 instance, but I have nothing to go on.
The CodeDeploy Agent is up and running and Port 443 is open on output.
I would also assume that if it was a permissions issue, I would be told something, but Nada!!
Can anyone help?
Upvotes: 1
Views: 2530
Reputation: 11
This is because the failure is a script from last successful deployment that fails. To resolve this create a deployment of the application where your getting BeforeBlockTraffic and AfterBlockTraffic failure should be ignored.
Use CodeDeployment console to create a deployment page, under ApplicationStop lifecycle event failure, choose Don't fail the deployment to an instance if this lifecycle event on the instance fails.
Upvotes: 1
Reputation: 384
The error was caused by the EC2 instances not having the right IAM role assigned.
Annoying as you don't get any pointers to this, but trail and error resolved this in the end
Upvotes: 0