convert_to_gateway_api
Convert Nginx Ingress YAML to AWS Gateway API resources, handling TLS, L4/L7 split, and load balancer configurations for ALB and NLB.
Instructions
Convert Nginx Ingress YAML to AWS Gateway API resources (full pipeline).
Steps: base conversion → GatewayClass injection → TLS fixup → L4/L7 split → Gateway merge → LoadBalancerConfiguration → TargetGroupConfiguration → ListenerRuleConfiguration
Args: ingress_yaml: Nginx Ingress YAML content or file path. tcp_services_yaml: Optional tcp-services ConfigMap YAML for TCP routes. udp_services_yaml: Optional udp-services ConfigMap YAML for UDP routes. scheme: ALB scheme — "internet-facing" or "internal". namespace: Default namespace if not specified in resources. alb_gateway_class: Name for the ALB GatewayClass (default: aws-alb). nlb_gateway_class: Name for the NLB GatewayClass (default: aws-nlb). gateway_grouping: Gateway consolidation strategy: "by-class-scheme" (default) | "by-namespace" | "by-host" | "single" health_check_path: TargetGroupConfiguration health check path. health_check_interval: TargetGroupConfiguration health check interval seconds. healthy_threshold: TargetGroupConfiguration healthy threshold count. unhealthy_threshold: TargetGroupConfiguration unhealthy threshold count.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ingress_yaml": "<ingress_yaml>"
},
"name": "convert_to_gateway_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scheme | No | internet-facing | |
| namespace | No | default | |
| ingress_yaml | Yes | ||
| gateway_grouping | No | by-class-scheme | |
| alb_gateway_class | No | aws-alb | |
| health_check_path | No | / | |
| healthy_threshold | No | ||
| nlb_gateway_class | No | aws-nlb | |
| tcp_services_yaml | No | ||
| udp_services_yaml | No | ||
| unhealthy_threshold | No | ||
| health_check_interval | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |