Change the tenancy of an Amazon EC2 instance - Amazon Elastic Compute Cloud

Change the tenancy of an Amazon EC2 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.

The operating system details of your instance—and whether SQL Server is installed—affect what conversions are supported. For more information about the tenancy conversion paths available to your instance, see Tenancy conversion in the License Manager User Guide.

Alternatively, you can change the tenancy of your virtual private cloud (VPC). For more information, see Change the instance tenancy of a VPC.

Limitations
  • For T3 instances, you must launch the instance on a Dedicated Host to use a tenancy of host. You can't change the tenancy from host to dedicated or default. Attempting to make one of these unsupported tenancy changes results in an InvalidRequest 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.

AWS CLI
To modify the tenancy value of an instance using the AWS CLI

Use the modify-instance-placement command.

aws ec2 modify-instance-placement --instance-id i-1234567890abcdef0 --tenancy dedicated
PowerShell
To modify the tenancy value of an instance using the AWS CLI

Use the Edit-EC2InstancePlacement cmdlet.

Edit-EC2InstancePlacement -InstanceId i-1234567890abcdef0 -Tenancy Dedicated