Skip to content

Commit beac01a

Browse files
markups
1 parent e738035 commit beac01a

File tree

6 files changed

+4
-13
lines changed

6 files changed

+4
-13
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ CloudFront distributions with HTTPS aliases require valid SSL certificates to cr
241241
If you're creating the distributions without valid SSL certificates (for example, so that you can give DLUHC all the records in one go)
242242
then set `domain = null` for each distribution to create without aliases.
243243

244+
The production Delta website has an origin read timeout above the standard quota limit of 60 seconds, so request an increase through the console if you're using that.
245+
244246
```sh
245247
terraform apply -target module.public_albs -target module.cloudfront_distributions
246248
```

terraform/modules/api_cloudfront/variables.tf

-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,3 @@ variable "apply_aws_shield" {
5454
variable "swagger_s3_log_expiration_days" {
5555
type = number
5656
}
57-
58-
variable "error_page_bucket_domain" {
59-
type = string
60-
}

terraform/modules/cloudfront_distribution/variables.tf

-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,3 @@ variable "function_associations" {
5050
type = list(object({ event_type = string, function_arn = string }))
5151
default = []
5252
}
53-
54-
variable "error_page_bucket_domain" {
55-
type = string
56-
}

terraform/modules/cloudfront_distributions/main.tf

-3
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ module "delta_cloudfront" {
5959
cloudfront_domain = var.delta.domain
6060
is_ipv6_enabled = var.delta.ip_allowlist == null
6161
geo_restriction_countries = var.delta.geo_restriction_countries
62-
geo_restriction_enabled = var.delta.disable_geo_restriction != true
63-
environment = var.environment
6462
apply_aws_shield = var.apply_aws_shield
6563
origin_read_timeout = var.delta.origin_read_timeout
6664
}
@@ -94,7 +92,6 @@ module "keycloak_cloudfront" {
9492
geo_restriction_countries = var.keycloak.geo_restriction_countries
9593
apply_aws_shield = var.apply_aws_shield
9694
function_associations = [{ event_type = "viewer-request", function_arn = aws_cloudfront_function.keycloak_request.arn }]
97-
error_page_bucket_domain = module.swagger_bucket.bucket_regional_domain_name
9895
}
9996

10097
module "cpm_cloudfront" {

terraform/modules/website_cloudfront/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ variable "apply_aws_shield" {
4848

4949
variable "origin_read_timeout" {
5050
type = number
51-
description = "Read timeout for the website origin"
51+
description = "Read timeout for the website origin in seconds. Note that the default quota limit for this is 60, to increase above that request a quota increase first."
5252
default = 60
5353
}

terraform/production/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ module "cloudfront_distributions" {
232232
}
233233
ip_allowlist = local.cloudfront_ip_allowlists.delta_website
234234
geo_restriction_countries = ["GB", "IE"]
235-
origin_read_timeout = 180
235+
origin_read_timeout = 180 # Required quota increase
236236
}
237237
api = {
238238
alb = module.public_albs.delta_api

0 commit comments

Comments
 (0)