1

enter image description here

I created above architecture with Mumbai region (I did not select, default value).

When I'm going to lunch the EC2 instance with below VPC, Sub-net and security group attached Im getting below message,

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.

But when I launch an EC2 instance without attaching VPC, Subnet,s (With default created vpc and security groups) Its launch successfully.

What is the problem? how can I launh EC2 instance with manually created VPC and Subnets.

5
  • Which AZs are you subnets in?
    – Marcin
    Jul 23, 2020 at 4:54
  • Availability Zone - ap-south-1c (aps1-az2) (I did not select)
    – dasitha
    Jul 23, 2020 at 4:58
  • Try creating vpc or new subnet in different AZ, like the answers suggest.
    – Marcin
    Jul 23, 2020 at 5:04
  • 1
    yes. now working
    – dasitha
    Jul 23, 2020 at 7:49
  • Good news: If you take a peek at this the ec2 pricing page you might be surprised to find that your region qualifies for a t3.micro for free: "( t3.micro for the regions in which t2.micro is unavailable)" aws.amazon.com/ec2/pricing Mar 21, 2022 at 23:57

2 Answers 2

2

It looks like t2.micro instances are not available in the particular availability zone. As the message says, You can create instances in the other two AZs.

When you launch the EC2 outside of VPC, it is launching the instances from an availability zone that has the capacity to launch the instance class automatically.

So it does not matter whether you are launching the instance inside the vpc or outside, If you do not specify an availability zone, it will choose a subnet from the availability zone that has the capacity to launch the particular instance class.

1
  • Even within one region, not all availability zones are the same! I tried to launch an m5.large EC2 instance in us-east-1, and it worked in every availability zone except "e".
    – Josh
    Nov 1, 2021 at 7:08
0

Some Availability Zones don't support particular instance types.

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/

Not the answer you're looking for? Browse other questions tagged or ask your own question.