Please adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_proxy_patch" "custom_template_1" {
provider = konnect-beta
type = "MeshProxyPatch"
name = "custom-template-1"
spec = {
target_ref = {
kind = "MeshGateway"
name = "gateway"
}
default = {
append_modifications = [
{
network_filter = {
operation = "Patch"
match = {
name = "envoy.filters.network.http_connection_manager"
origin = "gateway"
}
json_patches = [
{
op = "replace"
path = "/streamIdleTimeout"
value = "15s"
}
]
}
}
]
}
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}