This is a very strange issue. I've been doing blue/green CodeDeploy deployments for about 2 years now. Intermittently, deployments have been failing randomly at "BeforeBlockTraffic" on the original instance. I've noticed that restarting the codedeploy-agent helps BeforeBlockTraffic to succeed.
The EC2 is on Centos 7. The temporary workaround is to restart the codedeploy agent regularly throughout the day. However, I would prefer to figure out the root cause.
This is a very strange issue. I've been doing blue/green CodeDeploy deployments for about 2 years now. Intermittently, deployments have been failing randomly at "BeforeBlockTraffic" on the original instance. I've noticed that restarting the codedeploy-agent helps BeforeBlockTraffic to succeed.
cat /opt/codedeploy-agent/.version agent_version: OFFICIAL_1.3.1-1880_rpm
The EC2 is on Centos 7. The temporary workaround is to restart the codedeploy agent regularly throughout the day. However, I would prefer to figure out the root cause.