Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ definition:
- aws_transfer_server
operator: exists
cond_type: connection
- resource_types:
- aws_eip
connected_resource_types:
- aws_lb
- aws_alb
operator: exists
cond_type: connection
- cond_type: attribute
resource_types:
- aws_eip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ pass:
- "aws_eip.eip_ok_transer_server"
- "aws_eip.ok_eip_domain"
- "aws_eip.ok_eip_domain_assoc"
- "aws_eip.ok_eip_nlb"
fail:
- "aws_eip.not_ok_eip"
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,20 @@ resource "aws_eip" "ok_eip_data" {
instance = data.aws_instance.id
vpc = true
}

# via aws_lb (Network Load Balancer with subnet_mapping)

resource "aws_eip" "ok_eip_nlb" {
domain = "vpc"
}

resource "aws_lb" "nlb" {
name = "my-nlb"
internal = false
load_balancer_type = "network"

subnet_mapping {
subnet_id = "subnet-12345"
allocation_id = aws_eip.ok_eip_nlb.id
}
}