Lambda-REST-API

HarishKM7/Lambda-REST-API/AWS

Terraform Module HCL AWS

Terraform module to deploy a REST API in AWS API Gateway backed by one or more Lambda functions.

Install
module "Lambda-REST-API" {
source = "HarishKM7/Lambda-REST-API/AWS"
version = "0.1.0"
}
plain text: /constructs/tfmod-harishkm7-lambda-rest-api-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

AWS REST API + Lambda This Terraform module deploys a REST API to AWS API Gateway. It also deploys one or more Lambda functions that you provide and integrates them with the API. The API invoke URL will be output. The API is regional. All Lambda integrations are proxy integrations. The API is auto-deployed to a stage. No CORS. No request/response modeling/customization. Lambda functions should be pre-built and packaged into ZIPs. Defaults are used for Lambda memory and timeouts. For each Lambda function, the following is created: Permission to allow API Gateway to invoke it. CloudWatch log group and appropriate execution role. Example: Provide inputs to this module as follows: ``lang-hcl api_endpoints = { "/" = { get = "lambda1" } "/pets" = { get = "lambda2" post = "lambda1" } "/pets/{petI

Inputs (4)
NameTypeDescriptionDefault
api_endpointsanyAPI to Lambda mappings. (See examples.) required
lambda_functionsanyLambda functions. (See examples.) required
api_namestring required
api_stage_namestring required
Outputs (1)
api_invoke_url
Resources (3)
aws_api_gateway_deploymentaws_api_gateway_rest_apiaws_api_gateway_stage
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.0
Cloud AWS
★ Stars3
Forks5
Total downloads3.7k
Inputs4
Outputs1
Resources3
LicenseMIT
NamespaceHarishKM7
Updated