Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions loadbalancer/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ inputs:
type: list(string)
required: true
description: "Subnet IDs in different availability zones where load balancer nodes will be placed"
prefix_list_names:
type: list(string)
description: "List of AWS managed prefix list names to allow access (e.g., 'com.amazonaws.global.cloudfront.origin-facing'). Defaults to empty"

outputs:
arn:
Expand Down
11 changes: 0 additions & 11 deletions loadbalancer/module/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ resource "aws_lb" "lb" {
drop_invalid_header_fields = true
}

# Get managed prefix lists by name
data "aws_ec2_managed_prefix_list" "prefix_lists" {
for_each = toset(var.prefix_list_names)
name = each.key
}

# Create shared HTTP listener for services
resource "aws_lb_listener" "http" {
load_balancer_arn = aws_lb.lb.arn
Expand All @@ -30,8 +24,3 @@ resource "aws_lb_listener" "http" {
}
}
}

data "aws_security_group" "groups" {
count = length(var.security_groups)
id = var.security_groups[count.index]
}
6 changes: 0 additions & 6 deletions loadbalancer/module/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,3 @@ variable "security_groups" {
variable "subnets" {
type = list(string)
}

variable "prefix_list_names" {
type = list(string)
default = []
description = "List of AWS managed prefix list names to allow access (e.g., 'com.amazonaws.global.cloudfront.origin-facing')"
}
Loading