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 {
6
6
ecs_task_definition_requires_compatibilities = [" EC2" ]
7
7
8
8
# ALB
9
+ s3_bucket_access_logs_prefix = " alb-access-logs"
9
10
alb_access_logs_default_s3_configuration = var. create_s3_bucket_for_alb_logging ? {
10
11
bucket = module.s3_bucket[0 ].bucket_id
11
12
enabled = true
12
- prefix = var .s3_bucket_access_logs_prefix
13
+ prefix = local .s3_bucket_access_logs_prefix
13
14
} : null
15
+ s3_bucket_connection_logs_prefix = " alb-connection-logs"
14
16
alb_connection_logs_default_s3_configuration = var. create_s3_bucket_for_alb_logging ? {
15
17
bucket = module.s3_bucket[0 ].bucket_id
16
18
enabled = true
17
- prefix = var .s3_bucket_connection_logs_prefix
19
+ prefix = local .s3_bucket_connection_logs_prefix
18
20
} : null
19
21
20
22
alb_target_groups = {
Original file line number Diff line number Diff line change @@ -163,20 +163,6 @@ variable "s3_elb_service_account_arn" {
163
163
default = null
164
164
}
165
165
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
-
180
166
variable "s3_bucket_tags" {
181
167
description = " (Optional) Map of tags to assign to the bucket."
182
168
type = map (string )
You can’t perform that action at this time.
0 commit comments