File tree 2 files changed +18
-3
lines changed
2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -260,9 +260,9 @@ resource "aws_api_gateway_method_settings" "v1" {
260
260
settings {
261
261
metrics_enabled = false
262
262
logging_level = " INFO"
263
- cache_ttl_in_seconds = 300
264
- throttling_burst_limit = 300
265
- throttling_rate_limit = 100
263
+ cache_ttl_in_seconds = " ${ var . cache_ttl } "
264
+ throttling_burst_limit = " ${ var . burst_limit } "
265
+ throttling_rate_limit = " ${ var . rate_limit } "
266
266
}
267
267
}
268
268
Original file line number Diff line number Diff line change @@ -241,3 +241,18 @@ variable "zone_id" {
241
241
type = " string"
242
242
description = " Route 53 zone id"
243
243
}
244
+
245
+ variable "rate_limit" {
246
+ type = " string"
247
+ description = " API Gateway rate limit"
248
+ }
249
+
250
+ variable "burst_limit" {
251
+ type = " string"
252
+ description = " API Gateway burst limit"
253
+ }
254
+
255
+ variable "cache_ttl" {
256
+ type = " string"
257
+ description = " API Gateway cache ttl"
258
+ }
You can’t perform that action at this time.
0 commit comments