Using Console
Using CLI
<instance-id>
with the ID of the instance that you want to stop.<instance-id>
with the ID of the instance that you want to modify.<instance-id>
with the ID of the instance that you want to start.Using Python
modify_instance_attribute
method to modify the instance tenancy configuration. You will need to specify the instance ID and the tenancy type that you want to set. For example, to set the tenancy to dedicated, you can use the following code:describe_instances
method to retrieve the instance details: