Supports basic setup of API Gateway with an OpenAPI 3 YML document:
These parameters configure the use of the OpenAPI 3 document:
Added support for CloudWatch Alarms in v1.2, use the var.resources
parameter to specify which endpoints you want to monitor.
Call the module with the specific version you want using the ref
query parameter:
# ----------------------------------------------------------------------------- # API Gateway # ----------------------------------------------------------------------------- module "apigateway" { source = "github.com/rpstreef/tf-apigateway?ref=v1.0" resource_tag_name = var.resource_tag_name namespace = var.namespace region = var.region api_name = local.api_name api_throttling_rate_limit = var.api_throttling_rate_limit api_throttling_burst_limit = var.api_throttling_burst_limit api_metrics_enabled = var.api_metrics_enabled api_logging_level = var.api_logging_level api_template = file("../../services/api/${local.api_name}.yml") api_template_vars = { region = var.region } resources = { "/identity/authenticate" = "POST", "/identity/register" = "POST", "/identity/reset" = "POST", "/identity/verify" = "POST", "/user" = "GET" } }
Use the resources parameter var.resources
to specify which API endpoints you want the following Alarms to be enabled:
Initial release
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4