EC2:"Launch Failed Your requested instance type (t2.micro) is not supported in your requested Availability Zone (ap-south-1c)"

EC2: "Launch Failed Your requested instance type (t2.micro) is not supported in your requested Availability Zone (ap-south-1c)"

我用孟买地区创建了上面的架构(我没有select,默认值)。

当我要使用附加了以下 VPC、子网和安全组的 EC2 实例时,我收到以下消息,

Launch Failed Your requested instance type (t2.micro) is not supported in your requested Availability Zone (ap-south-1c). Please retry your request by not specifying an Availability Zone or choosing ap-south-1a, ap-south-1b.

但是当我在没有附加 VPC 的情况下启动 EC2 实例时,子网(使用默认创建的 vpc 和安全组)启动成功。

问题是什么?如何使用手动创建的 VPC 和子网启动 EC2 实例。

似乎 t2.micro 个实例在特定可用区中不可用。如消息所述,您可以在其他两个 AZ 中创建实例。

当您在 VPC 外部启动 EC2 时,它会从能够自动启动实例 class 的可用性区域启动实例。

因此无论您是在 vpc 内部还是外部启动实例,如果您未指定可用区,它将从可用区中选择一个具有启动特定实例能力的子网class.

一些可用区不支持特定的实例类型。

Some Availability Zones don't support particular instance types. If you receive the error "Your requested instance type is not supported in your requested Availability Zone," do the following: Determine which Availability Zones support your instance type. Retry the request and specify an Availability Zone that supports your chosen instance type. Or, submit the request without specifying an Availability Zone.

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-instance-type-not-supported-az-error/