Building Maintenance Mode for your API Gateway Using Terraform

Written by omryhay | Published 2020/07/11
Tech Story Tags: terraform | aws | aws-api-gateway | cloud-computing | env0 | amazon | api | apis

TLDR Building Maintenance Mode for your API Gateway using Terraform on API Gateway. When the API is in maintenance it should return “503 Service Unavailable” response. This led us to the following solution: create a new API Gateway dedicated to the maintenance mode. This API will use a mock integration and return the same response for all endpoints using proxy resource. This mocked API will co-exist with our real API. We will use custom domain and change the base mapping between the real API and the mocked one. We are using ANY method together with “proxy+” to achieve the ability to cover all resources with a simple configuration.via the TL;DR App

no story

Published by HackerNoon on 2020/07/11