api-gateway
dcshiman/api-gateway/aws
This terraform module creates AWS API gateway resource. The module only supports 5 levels of gateway resources
Install
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)
| Name | Type | Description | Default |
|---|---|---|---|
| resources | any | Resources for the API gateway, see readme | required |
| name | string | Name of the API Gateware | required |
| stage | string | Stage of the API Gateway | "default" |
| logs | bool | Enable or disable logs | false |
| tags | map(any) | Tags to be used for the gateway | {} |
| authorizers | any | Authorizers, see reademe | [] |
Outputs (2)
rest_api_iddeployment_stage