Skip to content

CloudPediaAI/terraform-aws-restapi-proxy

Repository files navigation

API Gateway Proxy

This terraform module will create a REST API in AWS API Gateway as Proxy for your API Server

Usage

Catch-all HTTP proxy (similar to v1.x)

module "api_proxy" {
	source  = "cloudpediaai/restapi-proxy/aws"
	version = "2.0.0"

	api_name    = "rest-api-proxy"
	api_version = "v1"

	api_endpoints = {
		proxy = {
			parent_path   = "/"
			endpoint_name = "{proxy+}"
			method        = "ANY"
			http_url      = "https://example.com"
		}
	}
}

Lambda-backed routes

module "api_proxy" {
	source  = "cloudpediaai/restapi-proxy/aws"
	version = "2.0.0"

	api_endpoints = {
		auth_create = {
			parent_path   = "auth"
			endpoint_name = "create"
			method        = "POST"
			lambda_name   = "create-auth-challenge"
		}

		auth_define = {
			parent_path   = "auth"
			endpoint_name = "define"
			method        = "GET"
			lambda_name   = "define-auth-challenge"
		}
	}
}

Links

Release Notes

Version 2.0.0

Refer ChangeLog

Version 1.2.2

Refer ChangeLog

Version 1.2.1

Refer ChangeLog

Version 1.1.0

Refer ChangeLog

About

Terraform module to create API Gateway Proxy to your API

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages