Fast AWS Amplify Console rollbacks with blue/green deploys

echo "Pushing previous commit to main-minus-one branch for instant rollback: \$(git rev-parse HEAD^1)"git push https://\${githubToken}:x-oauth-basic@github.com/org/repo \$(git rev-parse HEAD^1):main-minus-one --force
aws amplify update-domain-association --app-id abcde12345 --domain-name example.com --sub-domain-settings prefix=www,branchName=main-minus-one
aws amplify update-domain-association --app-id abcde12345 --domain-name example.com --sub-domain-settings prefix=www,branchName=main

--

--

--

Senior SRE @getsentry

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

5 Factors to Consider When Choosing Your Concessions POS System

Ramlal’s Problem — Understanding System Design

What is MongoDB: Explaining the Rise of NoSQL

[Record] Install APK to Android Phone via ADB | 利用ADB安裝APK到Android電話

Day 7 Hangman game

Terraform — Validating inputs (experimental feature)

Exploring GraphStudio, a UI for TigerGraph

My First Flutter Experience

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Michael Warkentin

Michael Warkentin

Senior SRE @getsentry

More from Medium

[How to ] Change your Admin Passwords in Open Distro for Elasticsearch on Centos 7.x

Automation mastery: the next frontier for quality SAP cloud deployments?

AWS Elastic Container Service

How to Integrate API Gateway with Cognito to Serve Authenticate Users