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.
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
}
No requirements.
Name | Version |
---|---|
aws | n/a |
Name | Source | Version |
---|---|---|
platform | github.com/FormidableLabs/terraform-aws-platform | v0.1 |
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 |
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 |
Name | Description |
---|---|
api | n/a |
apig_stage | n/a |
route53_record | n/a |
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.