-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
93 lines (78 loc) · 2.39 KB
/
variables.tf
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
variable "api_gateway_id" {
description = "ID of the HTTP API-Gateway"
type = string
default = null
}
variable "create_api_endpoints" {
description = "Set this to false to add the endpoints inside your OpenAPI definition or your own terraform code"
type = bool
default = true
}
variable "prefix" {
description = "Prefix to append to all resource names created. If not specified the API-Gateway name is used as prefix"
type = string
default = null
}
variable "stage" {
description = "Name of the stage, when is not $default, the stage is suffixed for the lambda serving to match the path"
type = string
default = "$default"
}
variable "enable_config_endpoint" {
description = "Enable config endpoint serving json"
type = bool
default = true
}
variable "swagger_config_endpoint_path" {
description = "Config endpoint to serve swagger json"
type = string
default = "/swagger-config"
}
variable "enable_swagger_ui_entrypoint" {
description = "Enable swagger ui top level page to redirect to the swagger ui path allowing you to share a flat link and be consistent with e.g. Spring Boot apps"
type = string
default = true
}
variable "swagger_ui_entrypoint_path" {
description = "Entrypoint for swagger ui redirect"
type = string
default = "/swagger-ui.html"
}
variable "swagger_ui_path" {
description = "Base path for swagger ui"
type = string
default = "/swagger-ui"
}
variable "openapi_definition_content" {
description = "Content of openapi definition"
type = string
}
variable "openapi_definition_format" {
description = "Format of definition"
type = string
default = "yaml"
validation {
condition = contains(["json", "yaml"], var.openapi_definition_format)
error_message = "Only 'json' and 'yaml' is supported."
}
}
variable "create_log_group" {
description = "Should a log group be created for the lambda"
type = string
default = true
}
variable "log_group_retention_in_days" {
description = "Amount of days to keep logs"
type = number
default = 3
}
variable "kms_key_arn" {
description = "ARN of the KMS key to use"
type = string
default = null
}
variable "tags" {
description = "Tags to assign to resources created by the module"
type = map(string)
default = {}
}