【问题标题】:How to create a VPC endpoint for autoscaling如何为自动扩展创建 VPC 终端节点
【发布时间】: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


【解决方案1】:

AWS 将在未来几周内添加 EC2 自动缩放 VPC 端点,传闻早于 Re:Invent。

【讨论】:

猜你喜欢
  • 2021-07-22
  • 2019-05-01
  • 2020-06-05
  • 1970-01-01
  • 2021-12-22
  • 2021-02-08
  • 2021-03-27
  • 2017-04-18
  • 2019-10-07
相关资源
最近更新 更多