You must be logged in to view saved presets
Sets up an AWS App Mesh virtual node with a listener health check configuration.
resource "aws_appmesh_virtual_node" "serviceb1" {
mesh_name = "aws_appmesh_mesh.simple.id"
name = "serviceBv1"
spec {
backend {
virtual_service {
virtual_service_name = "servicea.simpleapp.local"
}
}
listener {
health_check {
healthy_threshold = 2
interval_millis = 5000
path = "/ping"
protocol = "http"
timeout_millis = 2000
unhealthy_threshold = 2
}
port_mapping {
port = 8080
protocol = "http"
}
}
service_discovery {
dns {
hostname = "serviceb.simpleapp.local"
}
}
}
}