aws-codedeploy-agent icon indicating copy to clipboard operation
aws-codedeploy-agent copied to clipboard

Provide a way to run a cleanup script after a deployment error

Open attekei opened this issue 9 years ago • 5 comments

CodeDeploy is missing a mechanism for doing cleanup after a deployment error. This could be implemented as another lifecycle event that is triggered only when a deployment fails for some reason. This reason could be e.g. a non-zero exit status of a hook script, a timeout or a user-triggered cancellation of the deployment.

The idea of this originates from a more specific issue regarding ASG lifecycle scripts. In that case, an auto-scaling group is left in an unclean state after an error during a deployment.

One remotely similar mechanism for error handling is the rescue block in Ansible: http://docs.ansible.com/ansible/playbooks_blocks.html

attekei avatar May 25 '16 14:05 attekei

This was added to our backlog. Thank you

annamataws avatar Oct 15 '18 16:10 annamataws

Hi,

any news about this feature?

daaru00 avatar Mar 26 '19 15:03 daaru00

Bumping for an update on this feature.

saysjonathan avatar Jun 25 '19 19:06 saysjonathan

Bump........

ibejohn818 avatar Jun 26 '19 16:06 ibejohn818

Bump, just ran into something similar to this

arces avatar Apr 08 '20 23:04 arces