【发布时间】:2019-07-01 02:41:26
【问题描述】:
我们的 VPC 没有直接连接到互联网。所以我们需要 CLI --endpoint-url 选项将命令发送到自定义 VPC 端点而不是标准 AWS 服务端点 例如
aws sns publish --message $MESSAGE --target-arn $SNSTARGET --region $REGION --endpoint-url 'https://vpce-xxxx-xxxxx.sns.ap-southeast-1.vpce.amazonaws.com/'
对于自动缩放: 我找不到任何 vpc 端点接口选项,并且不接受 EC2 端点。
aws autoscaling complete-lifecycle-action --lifecycle-hook-name $LIFECYCLEHOOKNAME --auto-scaling-group-name $ASGNAME --lifecycle-action-result $HOOKRESULT --instance-id $INSTANCEID --region $REGION
无法连接到端点 URL:https://autoscaling.ap-southeast-1.amazonaws.com/
如果我尝试使用最近的端点,即 EC2
aws autoscaling complete-lifecycle-action --lifecycle-hook-name $LIFECYCLEHOOKNAME --auto-scaling-group-name $ASGNAME --lifecycle-action-result $HOOKRESULT --instance-id $INSTANCEID --region $REGION --endpoint-url 'https://vpce-xxxx-xxx.ec2.ap-southeast-1.vpce.amazonaws.com/'
调用 CompleteLifecycleAction 操作时发生错误 (InvalidAction):操作 CompleteLifecycleAction 对此 Web 服务无效。
【问题讨论】:
-
是的,[Interface VPC Endpoints https://docs.aws.amazon.com/vpc/latest/userguide/vpce-interface.html) 列表似乎不包括
autoscaling。 -
应该有某种方法可以使这项工作发挥作用,还是让我们失望了?
-
另一种方法可能是您创建自己的Amazon API Gateway Private Endpoints 来接收请求并将其发送到 Internet。
标签: amazon-ec2 autoscaling amazon-vpc