Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

521
Views
Deploy previous version in AWS Codepipeline

I am new to AWS and trying to create a pipeline for CICD. Stages involved in my pipeline are:

  1. Source -> Codecommit
  2. Build -> Codebuild project
  3. Deploy using Cloudformation

I am able to complete the pipeline and deployment is successful. But I am struggling to implement a rollback procedure with this. How to deploy previous version without making a code revert in the repository? Any help regarding this?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

I changed the pipeline configuration a bit and now I am able to deploy any version from history. Below is the solution:

  1. Source -> Codecommit
  2. Build -> Codebuild project
  3. Deploy using CodeDeploy instead of Cloudformation

Now, deployment history can be triggered at any time. Pick the version from the history in the deployments under code deploy and retry deployment.

over 4 years ago · Santiago Trujillo Report

0

Unfortunately there is currently no rollback step for CodePipeline, traditionally people would rollback by reverting the change from their master branch (which is meant to represent the state of live).

If you're unable to do this revert, then you will need to manage the rollback either from a different service or different pipeline.

As you're using CloudFormation you could take a look at implementing Rollback Triggers which would monitor the status of an alarm. If the alarm fails then it could rollback and fail the pipeline.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!