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).
Work with Dedicated Instances
You can create a VPC with an instance tenancy of dedicated
to ensure
that all instances launched into the VPC are Dedicated Instances. Alternatively, you can
specify the tenancy of the instance during launch.
Create a VPC with a dedicated instance tenancy
When you create a VPC, you have the option of specifying its instance tenancy. If you launch an instance into a VPC that has an instance tenancy of
dedicated
, your instance is automatically a Dedicated Instance,
regardless of the tenancy of the instance.
For more information about creating a VPC and choosing the tenancy options, see Create a VPC
in the Amazon VPC User Guide.
Launch Dedicated Instances into a VPC
You can launch a Dedicated Instance using the Amazon EC2 launch instance wizard.
- Console
-
To launch a Dedicated Instance into a default tenancy VPC using the
console
-
Open the Amazon EC2 console at
https://console.amazonaws.cn/ec2/.
-
Choose Launch Instance.
-
On the Choose an Amazon Machine Image (AMI) page,
select an AMI and choose Select.
-
On the Choose an Instance Type page, select the
instance type and choose Next: Configure Instance
Details.
-
On the Configure Instance Details page, select a
VPC and subnet. For Tenancy, choose Dedicated
- Run a dedicated instance, and then choose Next:
Add Storage.
-
Continue as prompted by the wizard. When you've finished reviewing your
options on the Review Instance Launch page, choose
Launch to choose a key pair and launch the
Dedicated Instance.
- Command line
-
To set the tenancy option for an instance during launch using the command
line
For more information about launching an instance with a tenancy of
host
, see Launch instances onto a
Dedicated Host.
Display tenancy information
- Console
-
To display tenancy information for your VPC using the console
-
Open the Amazon VPC console at
https://console.amazonaws.cn/vpc/.
-
In the navigation pane, choose Your VPCs.
-
Check the instance tenancy of your VPC in the Tenancy column.
-
If the Tenancy column is not displayed,
choose the settings icon (
) in the top-right corner, toggle to choose
Tenancy, and choose
Confirm.
To display tenancy information for your instance using the console
-
Open the Amazon EC2 console at
https://console.amazonaws.cn/ec2/.
-
In the navigation pane, choose Instances.
-
Check the tenancy of your instance in the Tenancy column.
-
If the Tenancy column is not displayed, do one of the following:
Choose the settings icon (
) in the top-right corner, toggle
to choose Tenancy, and choose
Confirm.
-
Select the instance. On the Details tab near
the bottom of the page, under Host and placement
group, check the value for
Tenancy.
- Command line
-
To describe the tenancy of your VPC using the command line
To describe the tenancy of your instance using the command line
To describe the tenancy value of a Reserved Instance using the command
line
To describe the tenancy value of a Reserved Instance offering using the
command line
Change the tenancy of an instance
You can change the tenancy of a stopped instance after launch.
The changes that you make take effect the next time the instance starts.
For T3 instances, you can't change the tenancy from dedicated
to
host
, or from host
to dedicated
. Attempting
to make one of these unsupported tenancy changes results in the InvalidTenancy
error code.
- Console
-
To change the tenancy of an instance using the console
Open the Amazon EC2 console at
https://console.amazonaws.cn/ec2/.
-
In the navigation pane, choose Instances and select your
instance.
-
Choose Instance state, Stop instance,
Stop.
-
Choose Actions, Instance settings,
Modify instance placement.
-
For Tenancy, choose whether to run your instance on dedicated
hardware or on a Dedicated Host. Choose Save.
- Command line
-
To modify the tenancy value of an instance using the command line
Change the tenancy of a VPC
You can change the instance tenancy of a VPC from dedicated
to default
after you create it. Modifying the instance tenancy of the VPC does not affect the tenancy of any
existing instances in the VPC. The next time you launch an instance in the VPC, it has a tenancy of
default
, unless you specify otherwise during launch.
You cannot change the instance tenancy of a VPC from default
to
dedicated
after it is created.
You can modify the instance tenancy of a VPC using the Amazon CLI, an Amazon SDK, or the Amazon EC2 API
only.
- Command line
-
To modify the instance tenancy attribute of a VPC using the Amazon CLI
Use the modify-vpc-tenancy
command and specify the ID of the VPC and instance tenancy value. The only supported value is
default
.
aws ec2 modify-vpc-tenancy --vpc-id vpc-1a2b3c4d
--instance-tenancy default