Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

FormidableLabs/terraform-aws-http-api-gateway

terraform-aws-http-api-gateway — Formidable, We build the modern web

Maintenance Status

Purpose

This module creates resources required for a HTTP AWS API Gateway (v2) when provided an existing Lambda Function and Route53 Hosted Zone. This module utilizes the the FormidableLabs/terraform-aws-platform module to create a regionally identifable Route53 Record (e.g use1-production-unsubscriber.example.com) to access the API Gateway.

Example Usage

module "apigateway" {
  source = "github.com/FormidableLabs/terraform-aws-http-api-gateway?ref=v0.1"

  domain_name                = var.domain_name
  lambda_function_invoke_arn = var.lambda_function_invoke_arn
  namespace                  = var.namespace
  service                    = var.service
  stage                      = var.stage
  enable_access_logs         = var.enable_apig_logs
}

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

Name Source Version
platform github.com/FormidableLabs/terraform-aws-platform v0.1

Resources

Name Type
aws_apigatewayv2_api.this resource
aws_apigatewayv2_api_mapping.this resource
aws_apigatewayv2_domain_name.this resource
aws_apigatewayv2_integration.this resource
aws_apigatewayv2_route.this resource
aws_apigatewayv2_stage.this resource
aws_cloudwatch_log_group.this resource
aws_lambda_permission.apigw_lambda_permission resource
aws_route53_record.this resource
aws_acm_certificate.wildcard data source
aws_route53_zone.this data source
aws_servicequotas_service_quota.throttling_burst_limit data source
aws_servicequotas_service_quota.throttling_rate_limit data source

Inputs

Name Description Type Default Required
domain_name Top level domain name. string "example.com" no
enable_access_logs Enable API Gateway Access Logs bool false no
enable_quota_limits n/a bool true no
lambda_function_invoke_arn (Required) ARN of the lambda the API Gateway will invoke. string n/a yes
log_retention_in_days Log retention in number of days. number 90 no
namespace n/a string "" no
service n/a string n/a yes
stage n/a string n/a yes
tags Additional tags to apply to the log group. map(any) {} no
throttling_burst_limit n/a number null no
throttling_rate_limit n/a number null no

Outputs

Name Description
api n/a
apig_stage n/a
route53_record n/a

Maintenance Status

Active: Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.

About

Terraform Module for deployment of an HTTP API Gateway (v2)

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •