diff --git a/loadbalancer/manifest.yaml b/loadbalancer/manifest.yaml index a21e611..8f30f21 100644 --- a/loadbalancer/manifest.yaml +++ b/loadbalancer/manifest.yaml @@ -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: diff --git a/loadbalancer/module/main.tf b/loadbalancer/module/main.tf index 104554c..f210d8f 100644 --- a/loadbalancer/module/main.tf +++ b/loadbalancer/module/main.tf @@ -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 @@ -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] -} diff --git a/loadbalancer/module/variables.tf b/loadbalancer/module/variables.tf index c36c660..294567a 100644 --- a/loadbalancer/module/variables.tf +++ b/loadbalancer/module/variables.tf @@ -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')" -}