How to fix AWS “The requested configuration is currently not supported”

Issue

When launching a new instance, it pops error “The requested configuration is currently not supported” and instance lauch failed

Possible reasons

VPC’s tenancy setting is not Default

Instance type is NOT supported in the zone or region, very likely local zone

Troubleshooting and the fix

In my case I am trying to deploy an instance in local zone, to find out supported instance in your zone, run the AWS CLI:

cloudshell-user@ip-10-2-5-4 ~]$ aws ec2 describe-instance-type-offerings --location-type availability-zone --filters Name=location,Values=ap-southeast-2-per-1a --region ap-southeast-2
{
    "InstanceTypeOfferings": [
        {
            "InstanceType": "t3.xlarge",
            "LocationType": "availability-zone",
            "Location": "ap-southeast-2-per-1a"
        },
        {
            "InstanceType": "c5.12xlarge",
            "LocationType": "availability-zone",
            "Location": "ap-southeast-2-per-1a"
        },
        {
            "InstanceType": "t3.medium",
            "LocationType": "availability-zone",
            "Location": "ap-southeast-2-per-1a"
        },
        {
            "InstanceType": "m5.2xlarge",
            "LocationType": "availability-zone",
            "Location": "ap-southeast-2-per-1a"
        },
        {
            "InstanceType": "c5.2xlarge",
            "LocationType": "availability-zone",
            "Location": "ap-southeast-2-per-1a"
        },
        {
            "InstanceType": "g4dn.2xlarge",
            "LocationType": "availability-zone",
            "Location": "ap-southeast-2-per-1a"
        },
        {
            "InstanceType": "r5.2xlarge",
            "LocationType": "availability-zone",
            "Location": "ap-southeast-2-per-1a"
        }
    ]
}

Unfuntunately, the instance type I was trying M5.Large is NOT listed.

How to check if that instance is supported or not

To check the if perticular instance is supported or not, using the CLI bleow, add a pipe

[cloudshell-user@ip-10-2-2-2 ~]$ aws ec2 describe-instance-type-offerings --location-type availability-zone --filters Name=location,Values=ap-southeast-2a --region ap-southeast-2 | grep m5.large
            "InstanceType": "m5.large",
[cloudshell-user@ip-10-2-2-2  ~]$ aws ec2 describe-instance-type-offerings --location-type availability-zone --filters Name=location,Values=ap-southeast-2c --region ap-southeast-2 | grep m5.large
            "InstanceType": "m5.large",
[cloudshell-user@ip-10-2-2-2  ~]$ aws ec2 describe-instance-type-offerings --location-type availability-zone --filters Name=location,Values=ap-southeast-2b --region ap-southeast-2 | grep m5.large
            "InstanceType": "m5.large",

Useful but not so useful link

https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-instancelaunchfailure.html#ts-as-instancelaunchfailure-3

Leave a Comment

Your email address will not be published. Required fields are marked *