Skip to content

nsbno/terraform-aws-api-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAPI API Gateway

Setup an API Gateway V1 using an OpenAPI Schema!

Usage

Remember to check out the variables and outputs to see all options.

module "api_gateway" {
  source = "https://github.com/nsbno/terraform-aws-api-gateway?ref=x.y.z"

  name_prefix      = "infrademo"
  application_name = "demo"

  domain_name = "infrademo.vydev.io"
  base_path   = "demo"

  schema = templatefile("../static/openapi/driftstjenester-backend.yml", {
    hosted_zone_name     = local.shared_config.hosted_zone_name
    base_path            = "infrademo"
  })
}