Skip to content

Commit 169ceb9

Browse files
[PRMP-579] remove access logging for test deployment
1 parent c100d33 commit 169ceb9

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

infrastructure/cloudfront.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ module "cloudfront-distribution-lg" {
1919
qualifed_arn = module.edge-presign-lambda.qualified_arn
2020
depends_on = [module.edge-presign-lambda.qualified_arn, module.ndr-lloyd-george-store.bucket_id, module.ndr-lloyd-george-store.bucket_domain_name, module.ndr-document-pending-review-store.bucket_id, module.ndr-document-pending-review-store.bucket_domain_name]
2121
web_acl_id = try(module.cloudfront_firewall_waf_v2[0].arn, "")
22-
access_log_bucket = local.is_production ? "${aws_s3_bucket.access_logs[0].bucket}.s3.eu-west-2.amazonaws.com" : null
23-
log_prefix = "cloudfront/"
22+
# access_log_bucket = local.is_production ? "${aws_s3_bucket.access_logs[0].bucket}.s3.eu-west-2.amazonaws.com" : null
23+
# log_prefix = "cloudfront/"
2424
}

infrastructure/modules/cloudfront/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ resource "aws_cloudfront_distribution" "distribution_with_secondary_bucket" {
107107
}
108108
web_acl_id = var.web_acl_id
109109

110-
logging_config {
111-
bucket = var.access_log_bucket
112-
prefix = var.log_prefix
113-
}
110+
# logging_config {
111+
# bucket = var.access_log_bucket
112+
# prefix = var.log_prefix
113+
# }
114114
}
115115

116116

infrastructure/modules/cloudfront/variable.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ variable "secondary_bucket_path_pattern" {
3939
type = string
4040
}
4141

42-
variable "access_log_bucket" {
43-
description = "Bucket to store access logs"
44-
type = string
45-
}
46-
47-
variable "log_prefix" {
48-
description = "Prefix to store access logs under"
49-
type = string
50-
}
42+
# variable "access_log_bucket" {
43+
# description = "Bucket to store access logs"
44+
# type = string
45+
# }
46+
#
47+
# variable "log_prefix" {
48+
# description = "Prefix to store access logs under"
49+
# type = string
50+
# }

0 commit comments

Comments
 (0)