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

Building Maintenance Mode for your API Gateway Using Terraform

by Omry Hay4mJuly 11th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Omry Hay

Omry Hay

@omryhay

Share Your Thoughts

About Author

Omry Hay HackerNoon profile picture
Omry Hay@omryhay

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!