How to Add Rollback Functionality to S3 CodeBuild Base Deployment

I followed this instruction to get a very simple ci workflow in aws. It works flawlessly, but I want to have additional functionality, rolling back. First of all, although it will work out of the box, but not in my case, if I select the previous task in CodeBuild that I want to rollback and click Retry, I get this error message: "ArtefactsOverride must be installed when using artifacts like CodePipelines. " I also tried to run the entire pipeline again with the piping history page, but this is just a list of assemblies without any features.

My questions are: how to add a rollback function to a workflow. It should not be in the same pipeline, etc. But it should not touch git.

+4
source share
1 answer

AWS CloudFormation now supports CloudWatch alert rollback .

I would put the CloudFront distribution in front of your S3 fan with the origin trigger installed in the folder inside this bucket. Each time you deploy to S3 from CodeBuild, you deploy to a random new S3 folder.

JSON CodeBuild. CloudFormation, CloudFormation .

CloudFormation OriginPath CloudFront , .

, CloudFormation .

:

  • , .
  • , , , .
  • , , , .

CodeBuild, CloudFormation.

+2

Source: https://habr.com/ru/post/1684985/


All Articles