Work with Dedicated Instances - Amazon Elastic Compute Cloud

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 an instance tenancy of dedicated

When you create a VPC, you have the option of specifying its instance tenancy. If you're using the Amazon VPC console, you can create a VPC using the VPC wizard or the Your VPCs page.

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.

Console

To create a VPC with an instance tenancy of dedicated (VPC Wizard)

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. From the dashboard, choose Launch VPC Wizard.

  3. Select a VPC configuration, and then choose Select.

  4. For Hardware tenancy, choose Dedicated.

  5. Choose Create VPC.

To create a VPC with an instance tenancy of dedicated (Create VPC dialog box)

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. In the navigation pane, choose Your VPCs, and then choose Create VPC.

  3. For Tenancy, choose Dedicated. Specify the CIDR block, and choose Create VPC.

Command line

To set the tenancy option when you create a VPC using the command line

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

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. Choose Launch Instance.

  3. On the Choose an Amazon Machine Image (AMI) page, select an AMI and choose Select.

  4. On the Choose an Instance Type page, select the instance type and choose Next: Configure Instance Details.

    Note

    Ensure that you choose an instance type that's supported as a Dedicated Instance. For more information, see Amazon EC2 Dedicated Instances.

  5. 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.

  6. 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

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. In the navigation pane, choose Your VPCs.

  3. Check the instance tenancy of your VPC in the Tenancy column.

  4. 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

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Instances.

  3. Check the tenancy of your instance in the Tenancy column.

  4. 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 only from dedicated to host, or from host to dedicated after launch. The changes that you make take effect the next time the instance starts.

Note
  • You can't change the tenancy of an instance from default to dedicated or host after launch. And you can't change the tenancy of an instance from dedicated or host to default after launch.

  • 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

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Instances and select your instance.

  3. Choose Instance state, Stop instance, Stop.

  4. Choose Actions, Instance settings, Modify instance placement.

  5. 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.

Note

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 AWS CLI, an AWS SDK, or the Amazon EC2 API only.

Command line

To modify the instance tenancy attribute of a VPC using the AWS 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