Skip to content

Commit

Permalink
remove private lb and access logs from network lb
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman committed Jan 3, 2024
1 parent ab1114f commit b9a5a99
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions terraform/environments/planetfm/locals_development.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,45 +106,16 @@ locals {
}

baseline_lbs = {

private = {
internal_lb = true
enable_delete_protection = false
load_balancer_type = "application"
idle_timeout = 3600
security_groups = ["loadbalancer"]
subnets = module.environment.subnets["private"].ids
enable_cross_zone_load_balancing = true
access_logs = false
force_destroy_bucket = true
# not required for testing in sandbox
instance_target_groups = {}
# not required for testing in sandbox
listeners = {
http = {
port = 80
protocol = "HTTP"
default_action = {
type = "fixed-response"
fixed_response = {
content_type = "text/plain"
message_body = "Private LB Reply"
status_code = "503"
}
}
}
}
}
network = {
internal_lb = true
enable_delete_protection = false
load_balancer_type = "network"
idle_timeout = 3600
security_groups = ["loadbalancer"]
subnets = module.environment.subnets["private"].ids
access_logs = true
access_logs = false
force_destroy_bucket = true
existing_bucket_name = "network-lb-logs-bucket20231219101122706700000001"
# existing_bucket_name = "network-lb-logs-bucket20231219101122706700000001"

instance_target_groups = {
network-lb-target-group = {
Expand Down

0 comments on commit b9a5a99

Please sign in to comment.