1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38variable "project_name" {
type = string
}
variable "environment" {
type = string
}
variable "backend_lambda_function_name" {
type = string
}
variable "backend_lambda_invoke_arn" {
type = string
}
variable "domain_name" {
description = "Custom domain for the API (e.g. api.example.com). Leave null to use the default API Gateway endpoint."
type = string
default = null
}
variable "acm_certificate_arn" {
description = "ACM certificate ARN for domain_name, required if domain_name is set. Must be in the same region as the API Gateway (regional endpoint), not us-east-1."
type = string
default = null
}
variable "cors_allow_origins" {
type = list(string)
default = ["*"]
}
variable "log_retention_in_days" {
type = number
default = 30
}