File tree 5 files changed +10
-1
lines changed
5 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ module "delta_cloudfront" {
60
60
is_ipv6_enabled = var. delta . ip_allowlist == null
61
61
geo_restriction_countries = var. delta . geo_restriction_countries
62
62
apply_aws_shield = var. apply_aws_shield
63
+ origin_read_timeout = var. delta . origin_read_timeout
63
64
}
64
65
65
66
module "api_cloudfront" {
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ variable "delta" {
41
41
# Leave null to disable restrictions
42
42
geo_restriction_countries = optional (list (string ))
43
43
ip_allowlist = optional (list (string ))
44
+ origin_read_timeout = optional (number )
44
45
})
45
46
}
46
47
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ resource "aws_cloudfront_distribution" "main" {
47
47
https_port = 443
48
48
origin_protocol_policy = var. cloudfront_domain == null ? " http-only" : " https-only"
49
49
origin_ssl_protocols = [" TLSv1.2" ]
50
- origin_read_timeout = 60
50
+ origin_read_timeout = var . origin_read_timeout
51
51
}
52
52
53
53
custom_header {
Original file line number Diff line number Diff line change @@ -45,3 +45,9 @@ variable "geo_restriction_countries" {
45
45
variable "apply_aws_shield" {
46
46
type = bool
47
47
}
48
+
49
+ variable "origin_read_timeout" {
50
+ type = number
51
+ description = " Read timeout for the website origin"
52
+ default = 60
53
+ }
Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ module "cloudfront_distributions" {
232
232
}
233
233
ip_allowlist = local.cloudfront_ip_allowlists.delta_website
234
234
geo_restriction_countries = [" GB" , " IE" ]
235
+ origin_read_timeout = 180
235
236
}
236
237
api = {
237
238
alb = module.public_albs.delta_api
You can’t perform that action at this time.
0 commit comments