api-gateway

dcshiman/api-gateway/aws

Terraform Module HCL AWS ⏱ stale 5y 0mo

This terraform module creates AWS API gateway resource. The module only supports 5 levels of gateway resources

Install

module "api-gateway" {
source = "dcshiman/api-gateway/aws"
version = "0.0.4"
}
⭐ Source on GitHub 📦 Registry page

README

AWS API GATEWAY This terraform module creates AWS Api gateway resource. The module only supports 5 levels of gateway resources EG Usage: ``` module "api_gateway" { source = "dcshiman/api-gateway/aws" version = "0.0.4" name = "foo-api" authorizers = { cognito-foo = { cognito_pool_name = "foo-bar" type = "COGNITO_USER_POOLS" } } resources = { "api" = { resources = { "{proxy+}" = { methods = { "ANY" = { authorization = "cognito-foo" // the key of the authorizer integration = { type = "AWS_PROXY" // Proxy to lambda function function_name = "foo-function" } } } } } } "users" = { methods = { "POST" = { integration = { integration_http_method = "POST" type = "AWS" // Non proxy lambda function function_name = "foo-users" } } } resources = { "sign-up" = { methods = { "POST" = { integration = { inte

Inputs (6)

NameTypeDescriptionDefault
resourcesanyResources for the API gateway, see readme required
namestringName of the API Gateware required
stagestringStage of the API Gateway"default"
logsboolEnable or disable logsfalse
tagsmap(any)Tags to be used for the gateway{}
authorizersanyAuthorizers, see reademe[]

Outputs (2)

rest_api_id
deployment_stage

Resources (4)

aws_api_gateway_authorizeraws_api_gateway_deploymentaws_api_gateway_method_settingsaws_api_gateway_rest_api

Details

FrameworkTerraform Module
LanguageHCL
Version0.0.4
Cloud AWS
★ Stars1
Forks1
Total downloads6.3k
Inputs6
Outputs2
Resources4
Namespacedcshiman
Updated