terraform module which creates AWS API Gateway and Route53 resources for a maintenancenmode
- creates API Gateway mock for toggling maintenance mode (
ON/OFF) - API Gateway endpoint will return a HTTP status
200if maintenance mode isOFFor503when maintenance isONforGETandOPTIONS GETreturns a static maintenance html- can add additional route53 weighted records that point to API Gateway and other Location
- simple mvp example for module usage
documentation is generated via terraform-docs markdown .
| Name | Version |
|---|---|
| terraform | ~> 0.14.11 |
| aws | ~> 3.42.0 |
| Name | Version |
|---|---|
| aws | ~> 3.42.0 |
No modules.
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| api_domain_name | main url for the maintenance api endpoint | string |
n/a | yes |
| api_name | name of api-gateway | string |
n/a | yes |
| api_stage_name | stage_name point so api endpoint | string |
n/a | yes |
| html_template | mailto email address for html template | map(string) |
{ |
no |
| maintenance_modes | true indicates environment is in maintenance mode | bool |
n/a | yes |
| tags | map of tags passed into module | map(string) |
{} |
no |
| zone_id | aws route 53 zone id | string |
n/a | yes |
| Name | Description |
|---|---|
| api_id | id of the API to connect |
| stage_name | name of a specific deployment stage to expose at the given path |
MIT Licensed. See LICENSE for full details.