Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Determine the supported boot modes of an instance
type
You can use the Amazon CLI or the Tools for PowerShell to determine the supported boot modes of an instance type.
To determine the supported boot modes of an instance type
You can use the following methods to determine the supported boot modes of an
instance type.
- Amazon CLI
-
You can use the describe-instance-types command to determine
the supported boot modes of an instance type. By including the
--query
parameter, you can filter the output. In this
example, the output is filtered to return only the supported boot
modes.
The following example shows that m5.2xlarge
supports both
UEFI and Legacy BIOS boot modes.
aws ec2 describe-instance-types --region us-east-1
--instance-types m5.2xlarge --query "InstanceTypes[*].SupportedBootModes"
Expected output:
[
[
"legacy-bios",
"uefi"
]
]
The following example shows that t2.xlarge
supports only
Legacy BIOS.
aws ec2 describe-instance-types --region us-east-1
--instance-types t2.xlarge --query "InstanceTypes[*].SupportedBootModes"
Expected output:
[
[
"legacy-bios"
]
]
- PowerShell
-
You can use the Get-EC2InstanceType (Tools for PowerShell) Cmdlet to determine
the supported boot modes of an instance type.
The following example shows that m5.2xlarge
supports both
UEFI and Legacy BIOS boot modes.
Get-EC2InstanceType -Region us-east-1
-InstanceType m5.2xlarge | Format-List InstanceType, SupportedBootModes
Expected output:
InstanceType : m5.2xlarge
SupportedBootModes : {legacy-bios, uefi}
The following example shows that t2.xlarge
supports only
Legacy BIOS.
Get-EC2InstanceType -Region us-east-1
-InstanceType t2.xlarge | Format-List InstanceType, SupportedBootModes
Expected output:
InstanceType : t2.xlarge
SupportedBootModes : {legacy-bios}