Я использую aws_lb для создания балансировщика нагрузки приложения в aws. Однако, когда я запускаю приложение terraform, оно показывает, что балансировщик нагрузки приложения испорчен и его необходимо постоянно воссоздавать.
# aws_lb.mylb is tainted, so must be replaced
-/+ resource "aws_lb" "mylb" {
~ arn = "arn:aws:elasticloadbalancing:us-east-1:accountid:loadbalancer/app/mylb/6aa550b5001f55" -> (known after apply)
~ arn_suffix = "app/mylb/6aa550b5001f55" -> (known after apply)
~ dns_name = "internal-mylb-5175872.us-east-1.elb.amazonaws.com" -> (known after apply)
drop_invalid_header_fields = false
enable_deletion_protection = false
enable_http2 = true
~ id = "arn:aws:elasticloadbalancing:us-east-1:accountid:loadbalancer/app/mylb/6aa550b5001f55" -> (known after apply)
idle_timeout = 60
internal = true
~ ip_address_type = "ipv4" -> (known after apply)
load_balancer_type = "application"
name = "mylb"
security_groups = [
"sg-abc",
]
- tags = {} -> null
~ vpc_id = "vpc-xyz" -> (known after apply)
~ zone_id = "zxcdfdstestzoneid" -> (known after apply)
~ access_logs {
+ bucket = "mybucket"
~ enabled = false -> true
+ prefix = "access_logs"
}
subnet_mapping {
subnet_id = "subnet-xyz"
}
subnet_mapping {
subnet_id = "subnet-abc"
}
}