Skip to content

tdemint10/terraform-aws-lambda-apigateway

 
 

Repository files navigation

terraform-aws-lambda-apigateway

This Terraform module manages APIGateway resources, producing an HTTP API whose endpoints are provided by Lambda functions. Infrastructure management is split between Terraform resources and an uploaded OpenAPI specification, amended with APIGateway - OpenAPI extensions.

Examples

Basic usage:

module "example" {
  source = "."
  name = "Alice"
}

Providers

Name Version
aws 5.44.0

Inputs

Name Description Type Default Required
name Name of the user to greet string "World" no

Outputs

Name Description
greeting A standard greeting

Resources

Name Type

Contributing

This is intended as a thought exercise more than for actual distribution. If you care to fork it to make your own modifications, have at it!

Getting started

The module is intended for use in Terraform configurations. Be sure to install an appropriate version of the tool (see main.tf), preferably via something like tfenv.

On a mac, using homebrew:

$ brew install tfenv
$ tfenv install 1.8.0
$ tfenv use 1.8.0

Validation

For convenience, this project includes pre-commit hooks that perform validation on each commit, catching more egregious errors and ensuring style conventions. They can be installed via the following commands:

$ brew install pre-commit terraform-docs tflint trivy go
$ pre-commit install

About

Terraform module to create a Lambda-powered APIGateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%