File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,17 @@ locals {
66 ecs_task_definition_requires_compatibilities = [" EC2" ]
77
88 # ALB
9+ s3_bucket_access_logs_prefix = " alb-access-logs"
910 alb_access_logs_default_s3_configuration = var. create_s3_bucket_for_alb_logging ? {
1011 bucket = module.s3_bucket[0 ].bucket_id
1112 enabled = true
12- prefix = var .s3_bucket_access_logs_prefix
13+ prefix = local .s3_bucket_access_logs_prefix
1314 } : null
15+ s3_bucket_connection_logs_prefix = " alb-connection-logs"
1416 alb_connection_logs_default_s3_configuration = var. create_s3_bucket_for_alb_logging ? {
1517 bucket = module.s3_bucket[0 ].bucket_id
1618 enabled = true
17- prefix = var .s3_bucket_connection_logs_prefix
19+ prefix = local .s3_bucket_connection_logs_prefix
1820 } : null
1921
2022 alb_target_groups = {
Original file line number Diff line number Diff line change @@ -163,20 +163,6 @@ variable "s3_elb_service_account_arn" {
163163 default = null
164164}
165165
166- variable "s3_bucket_access_logs_prefix" {
167- description = " (Optional) - Prefix for storing ALB access logs in the S3 bucket."
168- type = string
169- nullable = false
170- default = " alb-access-logs"
171- }
172-
173- variable "s3_bucket_connection_logs_prefix" {
174- description = " (Optional) - Prefix for storing ALB connection logs in the S3 bucket."
175- type = string
176- nullable = false
177- default = " alb-connection-logs"
178- }
179-
180166variable "s3_bucket_tags" {
181167 description = " (Optional) Map of tags to assign to the bucket."
182168 type = map (string )
You can’t perform that action at this time.
0 commit comments