moto/other_langs/terraform/elb/load_balancer.tf

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
393 B
Terraform
Raw Normal View History

data "aws_vpc" "default" {
default = true
}
data "aws_subnets" "all" {
filter {
name = "vpc-id"
values = [data.aws_vpc.default.id]
}
}
resource "aws_lb" "this" {
name = "nlb-test"
internal = true
load_balancer_type = "network"
subnets = data.aws_subnets.all.ids
enable_deletion_protection = false
}