-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
123 lines (102 loc) · 4.64 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
variable "api_name" {
description = "The name of the API gateway instance."
type = string
}
variable "api_region" {
description = "The region to deploy the API in."
type = string
}
variable "s3_bucket_name" {
description = "Name of S3 bucket where tiles will be stored."
type = string
}
variable "api_access_control_allow_origin" {
description = "Access-Control-Allow-Origin header value added to GET and OPTIONS responses. Defaults to \"'*'\" to allow all origins. Only a single value is permitted. Values must be enclosed in single quotes."
default = "'*'"
type = string
}
variable "api_access_control_allow_headers" {
description = "List of Access-Control-Allow-Headers header values to be added to OPTIONS responses. Values must be comma separated and the list enclosed in single quotes."
default = "'Content-Type,Range,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-Meta-Fileinfo'"
type = string
}
variable "api_binary_media_types" {
description = "Tuple of binary media types for the API."
default = ["application/x-protobuf", "application/x-www-form-urlencoded", "image/*"]
type = list(string)
}
# variable "api_cache_size" {
# description = "API cache cluster size in gigabytes. Used to cache responses from the GET tile endpoint, requests to tile.json are not cached. Allowed values include `0.5`, `1.6`, `6.1`, `13.5`, `28.4`, `58.2`, `118` and `237`. Note that API caching is not covered by the AWS Free Tier and will incur an hourly charge."
# default = 0
# type = number
# }
# variable "api_cache_ttl" {
# description = "API cache ttl in seconds. Used to set cache duration for responses from the GET tile endpoint. Setting to 0 disables caching. Allowed values range from `0` to `3600`."
# default = 0
# type = number
# }
variable "api_custom_authorizer_arn" {
description = "ARN for custom authorizer Lambda function triggered for all endpoints."
default = ""
type = string
}
variable "api_deployment_trigger" {
description = "A value used to trigger API deployments. If not set then the module will use an internal timestamp to force redeployment for each Terraform run. See the examples for more advanced configuration."
default = ""
type = string
}
variable "api_tilejson_response_template" {
description = "A custom value for the S3 integration response template for the TileJson endpoint. Enables modification of TileJson between S3 and API response."
default = ""
type = string
}
variable "api_require_api_key" {
description = "Toggle API Gateway API Key requirement for all endpoints. The API key is passed using the `x-api-key` header. Enable by default, see the examples for key and usage plan configuration."
default = true
type = bool
}
variable "api_stages" {
type = map(object({
name = string
cache_size = optional(number, 0)
cache_ttl = optional(number, 0)
throttling_burst_limit = optional(number, 100)
throttling_rate_limit = optional(number, 500)
xray_tracing_enabled = optional(bool, false)
}))
}
# variable "api_stage_name" {
# description = "Name for API stage."
# default = "default"
# type = string
# }
# variable "api_throttling_burst_limit" {
# description = "API burst limit tps. Maximum burst limit of transactions per second allowed for this API. Defaults to `100`. Use this setting to prevent the tile service from consuming too too many burst many transactions from the AWS account quota."
# default = 100
# type = number
# }
# variable "api_throttling_rate_limit" {
# description = "API rate limit tps. Maximum limit of transactions per second allowed for this API. Defaults to `500`. Use this setting to prevent the tile service from consuming too many transactions from the AWS account quota."
# default = 500
# type = number
# }
variable "api_execution_role_policy_arns" {
description = "Names and ARNs of additional policies to be attached to the API execution role."
default = {}
type = map(any)
}
variable "s3_bucket_policy" {
description = "A customised policy for the S3 bucket to support advanced use cases."
default = ""
type = string
}
variable "s3_skip_creation" {
description = "Optional override to skip creation of the S3 bucket and policies. Useful for when the bucket is created outside of Terraform."
default = false
type = bool
}
variable "tile_json_integration_override" {
description = "Optional override for the TileJson integration URI."
default = ""
type = string
}