Too Long; Didn't Read
env0 has a maintenance mode for both our front-end applications and our public API. We use Terraform, AWS, Github Pages, and Cloudfront to implement the feature. The switch itself will be done through the DNS, pointing to the DNS. We will use our current push mechanism to notify existing users that are in the app that we are currently in maintenance mode. We also use the public API that is used by our customers for integration in their CI/CD pipelines and other tools. We wanted to have a simple place to store the maintenance mode html, so we went with Github pages. The last part of the trickiest part is the last part to implement in Terraform.