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.
module "example" {
source = "."
name = "Alice"
}| Name | Version |
|---|---|
| aws | 5.44.0 |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| name | Name of the user to greet | string |
"World" |
no |
| Name | Description |
|---|---|
| greeting | A standard greeting |
| Name | Type |
|---|
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!
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.0For 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