API网关不向AWS内部ALB发送流量。
创始人
2024-09-08 08:30:39
0

需要确保API网关中的集成设置已正确配置为AWS内部ALB。以下是处理这个问题的代码示例:

1、使用AWS CLI命令行工具检查API Gateway、VPC和ALB的状态:

aws apigateway get-rest-apis --region region_name

aws ec2 describe-security-groups --region region_name

aws elbv2 describe-load-balancers --region region_name

2、检查API Gateway的集成设置:

aws apigateway get-integration --rest-api-id {rest_api_id} --resource-id {resource_id} --http-method {http_method}

3、对API Gateway进行更新,确保其向AWS内部ALB发送流量:

aws apigateway put-integration --rest-api-id {rest_api_id} --resource-id {resource_id} --http-method {http_method} --type HTTP --integration-http-method POST --uri {alb_url} --connection-type VPC_LINK --connection-id {vpc_link_id}

其中,{rest_api_id}、{resource_id}、{http_method}、{alb_url}和{vpc_link_id}需要替换为相应的值。

相关内容

热门资讯

透视有挂!wpk系统是否存在作... 透视有挂!wpk系统是否存在作弊行为,wpk透视是真的吗,2025新版总结(有挂解密);1、打开软件...
透视好友房!hhpoker免费... 透视好友房!hhpoker免费透视脚本,hhpoker软件靠谱吗,揭秘教程(有挂解密)1、起透看视 ...
透视教程!wpk模拟器多开,w... 透视教程!wpk模拟器多开,wpk显示有作弊,大神讲解(有挂插件)1、让任何用户在无需wpk显示有作...
透视有挂!hh poker辅助... 透视有挂!hh poker辅助器先试用,hhpoker辅助软件,软件教程(有挂插件)1)hh pok...
透视透视!微扑克微乐辅助,wp... 透视透视!微扑克微乐辅助,wpk透视工作室,黑科技教程(有挂方法)1、微扑克微乐辅助系统规律教程、微...
透视了解!hhpoker辅助器... 透视了解!hhpoker辅助器,hhpoker视频巡查真的假的,辅助教程(有挂细节)1、hhpoke...
透视脚本!wpk辅助器,wpk... 透视脚本!wpk辅助器,wpk透视是真的吗,爆料教程(有挂黑科技)1、wpk透视是真的吗ai辅助优化...
透视脚本!hhpoker德州透... 透视脚本!hhpoker德州透视,wepoker软件安装包,2025新版教程(有挂技巧)1、wepo...
透视真的!wpk透视辅助靠谱吗... 透视真的!wpk透视辅助靠谱吗,wpk俱乐部怎么作弊,攻略方法(有挂揭秘)1、首先打开wpk俱乐部怎...
透视透视!hhpoker必备开... 透视透视!hhpoker必备开挂,hhpoker可以控制吗,揭秘教程(有挂规律);1、hhpoker...