Building Maintenance Mode for your API Gateway Using Terraformby@omryhay
615 reads

Building Maintenance Mode for your API Gateway Using Terraform

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Building Maintenance Mode for your API Gateway Using Terraform
Omry Hay HackerNoon profile picture

@omryhay

Omry Hay

Receive Stories from @omryhay

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!