[英]AWS ECS Cluster - Instances
I have a "Custom VPC" with two subnets (A private subnet & a public subnet). 我有一个带有两个子网(一个私有子网和一个公共子网)的“自定义VPC”。
In ECS, when I try and create a cluster with "Custom VPC" and both subnets selected. 在ECS中,当我尝试使用“自定义VPC”和两个子网选择创建集群时。 The EC2 instances launched, are by default launched in the private subnets.
启动的EC2实例默认情况下在专用子网中启动。
1: You need run ECS in the public subnets reference : https://docs.aws.amazon.com/AmazonECS/latest/developerguide/get-set-up-for-amazon-ecs.html 1:您需要在公共子网参考中运行ECS: https : //docs.aws.amazon.com/AmazonECS/latest/developerguide/get-set-up-for-amazon-ecs.html
2: Yes or you need to create a private subnet with NAT gateway tied to it 2:是的,否则您需要创建一个绑定了NAT网关的专用子网
Every instance in a VPC has a default network interface, called the primary network interface (eth0). VPC中的每个实例都有一个默认的网络接口,称为主网络接口(eth0)。 You cannot detach a primary network interface from an instance.
您不能从实例分离主网络接口。 You can attach a new network interface.
您可以附加一个新的网络接口。
To change the subnet of launched EC2 instance, you can follow this steps: 要更改已启动的EC2实例的子网,可以按照以下步骤操作:
You can reference to this document for how to create and attach a new network interface for an EC2 instance. 您可以参考本文档,了解如何为EC2实例创建和附加新的网络接口。 https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.