CodePipeline supports stage level manual and automated rollback
You can have your pipeline automatically rollback a stage on any failure in the actions in the stage. You can also manually rollback a pipeline execution in stage regardless of status of the latest pipeline execution in that stage.
AWS CodePipeline is a fully managed continuous delivery service that helps you automate your release pipelines for fast and reliable application and infrastructure updates.